For requirements of the "bug" issue type, users should not be able to move them to the "task" issue type. However, moving them to other issue types (such as "story") should be allowed.
It would be even better if this scenario could be implemented specifically for certain user roles.
Can the scenario mentioned above be implemented using Script Runner with javascript?
Any suggestions would be greatly appreciated.
Hi Ian! Welcome to the community!
I say, think around the problem.
Instead of moving the ticket manually, I would create an automation which modifies the issue type.
Then remove user's permissions to move issues.
Your automation would look something like this:
To your users it would look a bit like this:
Keep in mind, this would only work if the work item types share the current status of the issue.
Hope that was helpful!
Regards,
Jaime
Hi @Jaime Escribano _knowmad mood_ ,
We are using the DC version. Can we also handle it this way? Thank you.
Regards,
Ian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ian Sun
Welcome to the community.
I have this information from a scriptrunner developer.
This is not possible with ScriptRunner's Behaviour as behaviour does not work on Issue Move Screen as mentioned.
There is a bug on our side where you can 'technically' restrict issue types on the 'Move Screen' but it won't work well due to the bug.
The only way I see to do it with ScriptRunner is to write a custom JavaScript and load it with Web Resources .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Marc - Devoteam ,
You mentioned that some JavaScript can be written and loaded into Web Resources. Could you please provide some examples?
Thank you very much for your help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ian Sun
I'm no scripter, there is this possibility in Scriptrunner, but I don't have examples for you
Maybe others on the forum or you could reach to the Scriptrunner support portal.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.