Community Announcements have moved! To stay up to date, please join the new Community Announcements group today. Learn more
×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 @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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.