Forums

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

How in Automation set two newly craeted issues link type

Tanveer Zubair March 18, 2025

I created an automation rule.  It is triggered and created two new issues in 2 projects.  I preserved the issue keys but not sure how to link them in automation steps.

I linked both of them with the triggered issue, but unable to make them relates to each other.

I believe I can use the some JQL to do it, but unable to apply in automation of Jira.. 

Attaching the automation rule here.

Thanks AutomationRule.PNG

1 answer

1 accepted

0 votes
Answer accepted
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 18, 2025

Hi @Tanveer Zubair 

What is the scope of your rule in the "Rule details" at the top: single-project, multiple-project, or global?

 

A single-project scope rule can create (or clone) issues into other projects, but it cannot access or modify them.  Thus if the rule is single-project the Link Issue action would not work as that needs to modify both issues: the trigger issue and the new one in the other project.

To change the rule scope, your Jira Site Admin will need to help as that setting is available from the global automation functions.

 

Kind regards,
Bill

Tanveer Zubair March 19, 2025

Hi Bill,

   First thanks to look into it.

It is multiple projects.  Here is the details.

Rule Detail.PNG

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 19, 2025

Ah, you are trying to relate the newly created issues to each other also.

To do that, you could use the plural {{createdIssues}} smart value: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--createdIssues--

 

Let's assume you are adding two issues, and want to link the second one to the first one.  The relevant parts of the rule would be:

  • action: create issue
  • action: create issue
    • in the issue create, add a link to the issue with:
      •  {{createdIssues.get(0)}}

 

This uses the list function get() which is 0-based for the first item.

Tanveer Zubair March 24, 2025

Hi Bill,

   Thanks for your suggestion.  It make sense.  It does work.

Thanks again.

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