Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Automation to link issues to another issue

Pradheep Ayyanar
Contributor
September 25, 2024 edited

I have few issues (sub-task) that needs to be linked as "Blocked by" to one of the issue in the same story.

Ex:

I have this task "MDU-13347" and this can be started only when "MDU-10466" is completed. I need to do automation to link this issue as blocked by as i have multiple scenarios like this and also projects. 

@Trudy Claspill can you help here

 

link-issue.png

list sub task.png

2 answers

1 accepted

6 votes
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 25, 2024 edited

Hello @Pradheep Ayyanar 

I want to first speak to you mentioning me by name, asking for my help, only 11 minutes after having posted your question.

Please note that I am saying this from a place of kindness, and I very sincerely encourage you to keep participating in this community and asking your questions.

I recommend that you allow more time, at least several hours and perhaps even an entire business day, for other community members to see and respond to new questions before attempting to elicit an answer from a specific community member. Speaking only for myself, I have a full time job that does not include participating in this community. I contribute to this community when I can and when it doesn't interfere with my work responsibilities.

Calling out a specific community member does not mean that community member is available to respond to your question. And for people scrolling through the pages of questions, some may even skip over your question assuming that the response count indicates other community members have already responded.

Screenshot 2024-09-25 at 6.36.06 PM.png

 

Setting that aside, let us now consider your question.

This seems very similar to the other question you posted on Sept. 19, where I provided suggestions.

https://community.atlassian.com/t5/Jira-questions/Automation-based-on-the-summary-text-and-status/qaq-p/2816489

I have the same question for you here as I had then:

- How do you identify the issue to which you want to link the newly created issue? Is that again based on the Summary text, like in you previous question?

If so, then the solution may be almost identical.

When an issue is transitioned to Complete Created
And that issue is a Sub-task
And the Summary of that issue is {the text you provided}
Then find all sibling subtasks that have the Summary {the text of the sibling issue summary}
And transition those subtasks to In Progress link each of those issues to the trigger issue

Trigger: Issue Created
Condition: Issue Fields Condition
Field: Issue Type
condition: equals
Value Sub-task
Condition: Issue Fields Condition
Field: Summary
condition: equals
Value: {the text you supplied}}
Branch: Related Issues: JQL
JQL: parent={{issue.parent.key}} and Summary ~"\"{the text you supplied}\""

Action: Link Issue

Screenshot 2024-09-25 at 6.46.19 PM.png

 

 

You may find it valuable to spend some time reviewing the documentation for Automation. There is a lot of information about conditions and actions and branching available in that documentation.

https://support.atlassian.com/cloud-automation/docs/jira-cloud-automation/

There is also free training available from the Atlassian University.

https://university.atlassian.com/student/catalog/list?search=jira+automation

Pradheep Ayyanar
Contributor
September 26, 2024

Thank you so much and understood on your first point clearly. I will ensure to not mention henceforth.

 

Thanks for the references and notes. let me take a quick look to see if the issues are linked.

Like • Trudy Claspill likes this
Pradheep Ayyanar
Contributor
September 26, 2024

It worked and thanks much. 

Like • Trudy Claspill likes this
0 votes
Pradheep Ayyanar
Contributor
September 25, 2024

@Trudy Claspill can you help here

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events