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 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 _knowmad mood_
Atlassian Partner
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

Ian Sun August 27, 2025

Hi @Jaime Escribano _knowmad mood_ ,


We are using the DC version. Can we also handle it this way? Thank you.

Regards,

Ian

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 .

Ian Sun August 27, 2025

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.

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 27, 2025

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.

Suggest an answer

Log in or Sign up to answer