Forums

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

Want to auto resolve main ticket when 3rd ticket get resolve for Jira cloud using scriptrunner

cgadade
Contributor
April 15, 2020

My scenario is :

I have 3 tickets : Jira-1 ,Jira-2,Jira-3.
Jira -1 is linked with Jira-2 with link Related to BGV
Jira-2 is linked with Jira-3 with link Related to CAB

I want to automatically resolve Jira-1 ,when my Jira-3 is getting resolving ,can you please help me on priority basis,we are using Jira Cloud.

 

 

Can you please help me...

1 answer

0 votes
Kristian Walker _Adaptavist_
Community Champion
April 20, 2020

Hi Cgadade,

I can confirm that to achieve your requirement of transition a linked issue when a ticket is resolved that you will need to create a script Listener which runs on the Issue Updated event.

The listener would need to return all the linked issues when the Jira 3 issue is updated and if the Jira 3 issue is in the correct status then it would need to run some logic to update the Jira 1 issue and to transition it to the correct status.

I can confirm that we have an example script located here which can be run on the Script Console and shows how to resolve the parent issue when all linked issues below it are resolved and this script will be a useful reference guide to help you to see how you can create the script that you require yourself.

I hope this information helps.

Regards,

Kristian

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events