Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Automation for Jira - Linked Issues rule not working

I'm not entirely sure if I'm doing anything wrong, but I can't get the "Related issues condition" to work in my automation rule.

Here's what I'm trying to do: I have a Jira Board for Governance purposes, and I have another Jira board for development tracking. I would like to set up an automation rule that would do the following:

  • Whenever an issue arrives at a specific status in Governance board, a new issue should be created in the Development board.
  • Once the ticket is marked as "Done" in the Development board, original ticket should be moved to the next status in Governance board.

Sounds pretty straightforward. However, there are some constraints:

  • There should be no duplicate issues in Development board.
  • Issues can flow through several status in Governance board and might arrive the trigger status more than once.
  • If, by any chance, an issue arrive at the trigger status more than once, the related issue in Development board should be moved to "Rework" status rather than a new issue to be created.

With that in mind, I'm trying to set up some rules that would only create automated issues in Development board if the trigger issue doesn't already have another issue linked as "Implemented by".

I tried to create the rule as following:

jira rules.PNG

But as you can see, after triggering the rule twice by moving the issue back to the previous status and moving it forward to the trigger status, the rule created the issue:

duplicated issue.PNG

And as you can see, the issue became duplicated:

jira issue.PNG

I tried changing the "is implemented by" with "implements" in the rule, I tried adding both at the same time, I tried changing the "Are not present" for "Are present", but the results were all the same: either Jira doesn't never creates a ticket, or always creates a ticket. I couldn't find a way to set it up to only create one ticket and not duplicate it at all.

Can someone please comment what can I be doing wrong? How to set up such rule?

Thank you!

1 answer

0 votes

Hi @Vinicius Zhu 

I built this rule to test it and it works fine for me.

I built the rule in one Jira Project; if you need it to reference two ensure you're creating a Global Rule.

---

This is how I did it, with your metadata points:

  • Action: Issue Transitioned - To Status: Approved for Dev
  • Condition: If/Else Block
  • If All Match: 
    • If Condition 1: Issue Fields Condition - Dev Team Team
    • If Condition 2: Related Issues Condition - Linked Issues, is implemented by, Are Not Present
    • Action: Create Issue:
      • Set any fields you need, but ensure Linked Issues is set to implements, trigger issue
  • Else: 
    • Branch: Linked Issues, is implemented by
      • Action: Transition Issue - To Status: Rework

---

I'd advise you do this part - Once the ticket is marked as "Done" in the Development board, original ticket should be moved to the next status in Governance board - as a separate rule.

That might look something like:

  • Action: Issue Transition - To Status: Done
  • Branch: Linked Issues, implements
    • Action: Transition Issue - Destination Status: <<Next Status>>

 

Ste

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

New cloud apps roundup - June 2021

Since our last roundup in April, Atlassian's Marketplace Partners have added over 100 new cloud apps to the Atlassian Marketplace to help your teams work more efficiently. Let’s take a quick look a...

449 views 5 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you