Forums

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

Hi. How to restrict the status (Resolved),of the Parent ticket until the linked issue closed.

bharath reddy December 26, 2019

when issues are created from a change request with an issue link: "is caused by", all linked issues are in resolved or done status before the original change request can be transition to resolved or done.

Note: We have to achieve this with only by using Script runner plugin. I need the script.

 

2 answers

1 accepted

2 votes
Answer accepted
brbojorque
Community Champion
December 26, 2019

You can perform a scripted validator using ScriptRunner.

https://scriptrunner.adaptavist.com/4.3.4/jira/recipes/workflow/validators/simple-scripted-validators.html

--

Pseudo code.

  • Get all outward links
  • Loop the link types and check if those tickets are closed then transition to original
0 votes
John Funk
Community Champion
December 27, 2019

Hi @bharath reddy  - Welcome to the Atlassian Community!

You can also do that with the Automation for Jira add-on. 

bharath reddy December 27, 2019

Can you Please tell me the process, how to achieve that with Autmation for jira.

John Funk
Community Champion
December 30, 2019

Ah, sorry - I read the original question wrong. Automation For Jira will perform actions when items are transitioned, but cannot actually prevent them from transitioning. However, ScriptRunner or JMWE (Jira Miscellaneous Workflow Extensions) should be able to do that. 

Suggest an answer

Log in or Sign up to answer