Forums

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

How do I add a label to type Incident and its linked issues?

Renee Niewald
Contributor
February 20, 2023

When we have Incidents we want to track the follow up work. There are 2 ways we know there will be follow up work:

1)followUp label is added to the Incident in project "Incident Response"

OR

2) An issue is linked to the Incident in project "Incident Response" but it may be in a different project space

In each case, we want to ensure the followUp label is added to the Incident and the linked issues.

 

CC: @Mark Segall 

2 answers

0 votes
Mark Segall
Community Champion
February 20, 2023

Hi @Renee Niewald - Thanks for creating the separate question.

So, you're looking at two rules (per previous comments, each rule should be configured with a scope that is either global or multi-project):

Rule 1: Label added

This rule will trigger when the label is added, look for any linked issues and add the label to those as well.

  • TRIGGER: Field Value Changed (Labels)
  • CONDITION: Labels contains followUp
  • BRANCH (Linked Issues)
    • ACTION: Edit Issue (labels)
      • Add the followUp Label

 

Rule 2: New issue linked

This rule will trigger when a new issue has been linked to an incident.  Note per the rule...

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}}

With this in mind, you'll need to have an understanding of the issue/destinationIssue usage.  For this example, let's assume the incident is blocked by the linked issue.  The rule would look like this:

  • TRIGGER: Issue Linked
  • ACTION: Lookup Issues
    • Project = "Incident Response" AND issueLink = {{issue}} AND labels IN (followUp)
  • CONDITION (Advanced)
    • {{lookupIssues.size}}
      Greater Than
      0
  • ACTION: Edit Issue (Labels)
    • Add the followUp label
0 votes
Renee Niewald
Contributor
February 20, 2023

Ignore.

Suggest an answer

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

Atlassian Community Events