Forums

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

Trigger

Suporte JRetail
Contributor
November 9, 2022

What is the trigger I need to put when an iten is linked to another? but the one that got the link at need to trigger an rule.

I don't know if I made it clear, if you didn't understand, just ask me and I'll respond.

1 answer

1 accepted

0 votes
Answer accepted
Mark Segall
Community Champion
November 9, 2022

Hi @Suporte JRetail - You'll want the Issue Linked trigger.  From the definition:

Rule executes when an issue is linked to another issue. {{issue}} will always refer to the source issue, so if ISSUE-A is blocked by ISSUE-B, this rule will execute on ISSUE-B. To access ISSUE-A, use {{destinationIssue}}, and to access the link type, use {{linkType}} (e.g. {{linkType}}

So, Jira doesn't look at it from the perspective of which issue initiated the link.  It cares about the link relationship so that's how you need to think about the rule execution.

If you provide additional context about the end goal for your rule, we can help in trying to configure that rule.

Suporte JRetail
Contributor
November 21, 2022

Hi @Mark Segall ,
So what I want to do is, I have 3 projects in my Jira, and in project 1 I have an field that I want to print the name of the project 2 or 3, if an iten from project 1 is linked on an iten from project 2 or 3.

I don't know if that made any sense, but if you want more information, just ask and I'll responde as soon as possible, thaks for the help.

Mark Segall
Community Champion
November 21, 2022

I haven't verified myself, but this should work.  Basically, upon link, it will look at the current issue to see if it's project 1 or something else. 

  • TRIGGER: Issue Linked
  • IF CONDITION (Field Condition)
    • Project = Project 1
    • ACTION: Edit Issue (Your custom field)
      • {{destinationIssue.project.name}}
  • ELSE CONDITION
    • Project = Project 2 
    • BRANCH (Destination Issue)
      • ACTION: Edit Issue (Your custom field)
      • {{triggerIssue.project.name}}
  • ELSE CONDITION
    • Project = Project 3
    • BRANCH (Destination Issue)
      • ACTION: Edit Issue (Your custom field)
      • {{triggerIssue.project.name}}
Like Suporte JRetail likes this
Suporte JRetail
Contributor
November 30, 2022

Thank you very much for that, just worked.

Like Mark Segall likes this

Suggest an answer

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

Atlassian Community Events