Forums

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

Closing a request when all specific type of linked issues are close

Térence LECROIX
Contributor
March 7, 2023

Hello,

I'm trying to create an automation on Jira Service Management Cloud which will on schedule will check if linked issues (type complaint) exists and if so check the statuts from those issues.

If all linked issues linked are closed then the request will close automatically.

I found this article but I don't understandard how it works so I'm unable to apply this automation : https://community.atlassian.com/t5/Jira-Work-Management-Questions/Global-automation-multiproject-linked-issues-condition-does-not/qaq-p/2181467

 For example : 

  1. Main request
    1. Has 2 Linked issue type "Complaint"
    2. Has 1 Linked issue type "Information"

The automation should be able to loop on all Complaint linked to the main request, check if the statuts of all Complaints are closed, and if so close the Main request.

 Thank you for your help

2 answers

0 votes
John Funk
Community Champion
March 8, 2023

Hi @Térence LECROIX 

Create a rule something like this:

Screenshot.png

Térence LECROIX
Contributor
March 8, 2023

Hello, thank you for your answer but the relation between tickets is only a specific link type, there are not sub-tasks : 

  1. Main request --> Issue type = Initial request
    1. Has 2 Linked issue type "Complaint" --> Issue type = Complaint
    2. Has 1 Linked issue type "Information"
John Funk
Community Champion
March 9, 2023

Use the Linked Issues branch instead. It should have what you need.

Térence LECROIX
Contributor
March 9, 2023

This Automation with  Linked Issues branch will take account all complaints issues ?

I though to this automation but I'm not sure about the "loop mode" on all linked issue. 

For example : 

Case1 : Close the main request

  1. Main request
    1. Has 2 Linked issue type "Complaint"
      1. Issue 1 is done
      2. Issue 2 is done
    2. Has 1 Linked issue type "Information"

 

Case2 : Do not close the main request

  1. Main request
    1. Has 2 Linked issue type "Complaint"
      1. Issue 1 is done
      2. Issue 2 is still in progress
    2. Has 1 Linked issue type "Information"

 

Case 1 : Close the main ticket because all complaint related are done

Case 2 : Do not close the main ticket because there is still at least one complaint opened

0 votes
Dan Breyen
Community Champion
March 7, 2023

If I recall correctly, there is a similar automation in the library to do this with sub tasks.  If the main task is complete, close the sub tasks, and if all the subtasks are closed, close the main task.  you might be able to use those delivered automations as templates.

Térence LECROIX
Contributor
March 8, 2023

Hello, thank you for your answer but the relation between tickets is only a specific link type, there are not sub-tasks : 

  1. Main request --> Issue type = Initial request
    1. Has 2 Linked issue type "Complaint" --> Issue type = Complaint
    2. Has 1 Linked issue type "Information"

 

The sub-tasks won't have any effect if i'm correct.

Dan Breyen
Community Champion
March 9, 2023

That would still work, you can look up the linked issue type.  I'm doing something similar:

 JSMLinked.png

Like Goran Pravica likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events