How can I create an automation when a defect is created, update some fields based on linked story's

Fernando Zeni Alvarenga
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 30, 2024

How can I create an automation when a defect is created, update some fields based on linked story's status?

I already create one, but this is updating the story instead of defect. I would like to update the defect based on story's status, then I will know the defect is created correct.

Currently automation updating the story instead of defect:

Screenshot 2024-10-01 000522.png

3 answers

0 votes
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.
October 1, 2024

Hi @Fernando Zeni Alvarenga -- Welcome to the Atlassian Community!

When you want to update the just-created story based on the status of the linked issues, your have several options without branching to the linked issues:

  • use a related issues condition to check the linked issues
  • use smart value, list filtering on {{issue.issuelinks}} and the smart value condition
  • use the Lookup Issues action with JQL to gather the relevant linked issues, and then use smart value conditions to check the results

After any of those, you could then edit the trigger issue.

Kind regards,
Bill

0 votes
Muhammad Moazzam Hassan
Contributor
September 30, 2024

In branch try Affected by instead of Affects.

0 votes
Benjamin
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 30, 2024

HI @Fernando Zeni Alvarenga ,

 

You can try looking at the other  way  using almost the same automation you have. For example, trigger by when the story its linked to the bug then branch to the bug and update the bug. Hope this helps.

Suggest an answer

Log in or Sign up to answer