Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Prohibiting from moving issues of the "bug" type to the "task" type

Ian Sun
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 22, 2025

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.

2 answers

0 votes
Jaime Escribano
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 22, 2025

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:

automationExample.png

 

To your users it would look a bit like this:

automationExample2.pngautomationExample3.png

 

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

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 22, 2025

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 .

Suggest an answer

Log in or Sign up to answer