Forums

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

Jira Automation, lined issues issues did not match the condition

Mykola November 28, 2024

Hello dear community,

I would like to set up an automation rule for Jira:

If a risk item is linked to the problem item -> set field “Risk review necessary” to Yes.

I started with the trigger "When Issue is linked to all link types" and continued with the rule that actually works.

automation.jpg

However, my trigger works only for a few types of links and only in one direction.

For example, Dependency ("has dependency" - yes, but "is dependent on" - no), also works only for "is duplicated by" but not for "duplicates", works for "is contained in" but does not work for "contains". For the other link types, the sending trigger does not work in either direction. Why is this happening? By selecting "When issue linked to all link types" I expect all the link types to be performed in both directions. Am I wrong or what could be the problem?

 

Kind regards,

Mykola

2 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.
November 29, 2024

Hi @Atlassian User 

The rule's scope and in which project the issues exist determine if / when a rule will trigger with Issue Linked.  That is, when the rule is defined in one project as single-project scope and issues in other projects are linked, the rule will not be able to access the other issues.

 

Are your issues all in the same project or in multiple projects?

Seeing the audit log details for your rule execution may also help the community provide suggestions.

 

Kind regards,
Bill

Mykola December 2, 2024

Hi @Bill Sheboy ,

 

I appreciate your help.

Yes, I´m working in the same project. And I would share the Audit logs as well if there would be something relevant, I rather would use them to solve the problem on my own but there is nothing helpful there. E.g. :

audit_logs.jpg

Kind regards,

Mykola

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.
December 2, 2024

Thank you for that information. 

Regarding link direction, the rule only triggers one time when two issues are linked, not once for each issue.  If your link could be added from either issue (by choosing the relevant direction), you would need an if / else block to handle both possible cases:

  • if / else block
    • condition: issue type equals Risk
    • branch to Destination issue
      • condition: issue type equals Problem
      • action: edit the issue
  • else / if
    • condition: issue type equals Problem
    • branch to Destination issue
      • condition: issue type equals Risk
      • action...

 

Stefan Salzl
Community Champion
December 2, 2024

Hi @Atlassian User 

as @Bill Sheboy already pointed out the main parts I would like to add another point that helped me a lot in the past. 

When working with linked issues/issue linked trigger the terms "inward/outward" and "destination/source issue" become very important. The following (as I personally think) describes this pretty well and may help build the correct conditions/branches/actions in the automation rule. If you have your process/how are issues linked/which linktype is chosen and which direction then you should know the inward/outward direction and thus the source/destination issue.

https://community.atlassian.com/t5/Jira-questions/Issue-links-what-is-the-meaning-of-quot-inward-quot-and-quot/qaq-p/839095

 

Link Types and their directions are defined in your Jira Issue Settings. You can find those by clicking the cog in the upper right corner for settings/menu point "Issues"/then "Issue linking" in the menu on the left of the screen.

 

Best
Stefan

Like Bill Sheboy likes this
0 votes
Uladzislau Samuseu
Contributor
November 29, 2024

Hi @Atlassian User !

Try to use this structure: https://prnt.sc/x-WIvdQhdDjV (replace the necessary fields)

Mykola November 29, 2024

Hi @Uladzislau Samuseu ,

Thanks for quick response but I´m not allowed to use your link. Access blocked.

Suggest an answer

Log in or Sign up to answer