I'm encountering a situation that seems strange when customizing the lifecycle of a user request.
A you can see in the screenshot in attach, I defined 2 transitions from resolved state. It is possible to close or to reopen the request. But in the console, there is only the "close" button that appears...
The second screenshot shows the issue in the UI.
It might be because your user doesn't have the permission for these stimuli. Open the user page, then go to the "Grant Matrix" tab and check if the stimuli are alowed.
Hope this helps,
Guillaume
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You're perfectly right! Thanks!
The user profile allow all the others stimuli but not this one.
How can I manage the grant matrix to associate the 'reopen' stimuli to the dedicated profile please?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In the Grant matrix, the "UserRequest" group appears (for Support Agent profile) and it allows all the stimuli, except the 'reopen' one.
I have to allow the reopen stimuli in the "UserRequest" group for the Support Agent profile (id=5).
I think it is only possible by redefining this node. Am I right?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It depends on what you aim at. If you do that, all profiles having "UserRequest" will be able to re open request, including support agents.
If you only want some profiles to be able to reopen user requests, then you should add a new group with the stimulus, then add this group to the said profiles.
Hope it helps,
Guillaume
Last edit: Guillaume Lajarige 2023-06-08
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The XML is missing a <profiles> node between <user_rights> and <profile>.
Also, I think you will need to add a _delta="define" flag on the <action> node, otherwise it won't compiled correctly.</action></profile></user_rights></profiles>
Hope this helps,
Guillaume
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks Guillaume!
It works for the compilation \o/
But the stimuli ev_reopen still not appears in the grant matrix for the profile... Arghhhh !!!
It makes me crazy!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi everyone!
I'm encountering a situation that seems strange when customizing the lifecycle of a user request.
A you can see in the screenshot in attach, I defined 2 transitions from resolved state. It is possible to close or to reopen the request. But in the console, there is only the "close" button that appears...
The second screenshot shows the issue in the UI.
My code is the following :
Can you help me to understand the problem?
Thanks a lot!
Rafael.
Hello Rafael,
It might be because your user doesn't have the permission for these stimuli. Open the user page, then go to the "Grant Matrix" tab and check if the stimuli are alowed.
Hope this helps,
Guillaume
You're perfectly right! Thanks!
The user profile allow all the others stimuli but not this one.
How can I manage the grant matrix to associate the 'reopen' stimuli to the dedicated profile please?
Ok, I think I have to redefine this nodes
from datamodel.itop-profiles-itil.xml
You have to check if the profiles that your user has, have the "UserRequest" group.
You don't necessarly need to redefine this node.
In the Grant matrix, the "UserRequest" group appears (for Support Agent profile) and it allows all the stimuli, except the 'reopen' one.
I have to allow the reopen stimuli in the "UserRequest" group for the Support Agent profile (id=5).
I think it is only possible by redefining this node. Am I right?
It depends on what you aim at. If you do that, all profiles having "UserRequest" will be able to re open request, including support agents.
If you only want some profiles to be able to reopen user requests, then you should add a new group with the stimulus, then add this group to the said profiles.
Hope it helps,
Guillaume
Last edit: Guillaume Lajarige 2023-06-08
I try to follow your advices and implement them but it doesn't work as I expect.
I added this in my datamodel :
It deletes all the standard rights for the users in the profile.
I try to understand the right management with this documentation
https://www.itophub.io/wiki/page?id=3_0_0:customization:add-profile-sample
but it is not clear for me sorry.
Am I on the right direction?
Last edit: Rafael AINCIART 2023-06-08
Finaly, I think this code would be more appropriate :
But when I want to "setup" with the new extension, it makes this error :
It looks like a problem of dependencies in my module.my-extension.php. I tried several declarations but it still fails...
Any idea to help me?
The XML is missing a <profiles> node between <user_rights> and <profile>.
Also, I think you will need to add a
_delta="define"
flag on the <action> node, otherwise it won't compiled correctly.</action></profile></user_rights></profiles>Thanks Guillaume!
It works for the compilation \o/
But the stimuli ev_reopen still not appears in the grant matrix for the profile... Arghhhh !!!
It makes me crazy!
Can you share your complete XML ?
Yes! Here is the file
It might be because it's
stimulus:ev_reopen
instead ofstimulus:reopen
:)Guillaume
Oh no! Shame on me!
You're right.
I just test it and now it works perfectly!
Many many many thanks for your help Guillaume :)
Glad to see you fixed it!
Have a nice WE :)
Guillaume
Thanks to you!
Have a good weekend too ;)