Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,294,116
Community Members
 
Community Events
165
Community Groups

Restrict move permissions to sub task based on the issue type

I have a defect  issue type  that is created as a  sub task for a  Bug Issue type. I have another custom issue type called 'triaged defects' . Any unresolved or triaged defects that will not be closed in the current sprint will be moved to the triaged  defects custom issue  type. When the defect is ready for fixing , defect sub task that is stored in the triaged  defects will be moved back to the Bug issue type.

I would like the defect subtask issue type to be moved with in Big issue type and triaged  defects custom issue type. I would like to restrict permissions for the defect subtask to be able to move under other issue types such as story , epic or Task.

For the defect sub task , when I select the change parent , It  should allow me to  move it to either Bug issue type or my custom issue type triaged defects  custom issue  type. How do I achieve this using script runner.

1 answer

0 votes

I'm sorry, but this is a very broken process you have defined here, and hence it's not going to be possible for you to get even close to it in Jira.

Taking it a piece at a time:

> I have a defect  issue type  that is created as a  sub task for a  Bug Issue type.

Jira does not limit sub-task types by the parent

>  I have another custom issue type called 'triaged defects' . Any unresolved or triaged defects that will not be closed in the current sprint will be moved to the triaged  defects custom issue  type.

You should never have "change issue type" as part of a process.  Changing issue type is for housekeeping and when someone has made a genuine mistake.  Because of this, it is a nightmare to do it in Jira - it simply isn't built to do it.

I would like to restrict permissions for the defect subtask to be able to move under other issue types such as story , epic or Task.

Nope, one of the things you can't do is conditionally protect "move".  You can either move an issue or you can not.

For the defect sub task , when I select the change parent 

This is also something you should not be doing as part of a standard process.  It is housekeeping or error, but also something you might do sometimes as part of backlog refinement, but still not a standard process.

How do I achieve this using script runner.

With an enormous amount of very complex code that everyone I've seen attempt it gives up on.

 

I very strongly recommend you take a step back, look again at what you are trying to achieve and redesign the process so that you do not need to change issue types or parent issues as part of it.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Jira Service Management

Jira Service Management Documentation Opportunities

Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...

254 views 0 6
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you