Given that my company have two JIRA projects, Project A (Incident) and Project B (Improvement).
I have created an issue to report an incident in Project A for example; INC-001
and we also report the incident to Process Owner team, they create a backlog issue on their Project B for example; PRO-009.
So we inwards link issue INC-001 to PRO-009 like this
"INC-001 is affected by PRO-009"
Somehow, INC-001 has a dependency to PRO-009 and could not be closed if PRO-009 is not moved to "Done".
In this situation, i create a global automation to detect that... when PRO-009 is transited to "Done", then.. the automation will write down a comment in INC-001 issue like this..
INTERNAL COMMENT:
Update: {{triggerissue.key}} is moved to "Done", please the assignee of INC-001 proceed to the next step.
However, i have tried several smart-value such as {{triggerissue.issuelinks.inwardIssue.key}} to ensure that the automation can retrieve the key that PRO-009 is linked by (In this case, INC-001), but somehow it returns nothing.
Please someone advise me what is the correct structure of smart-value that i can put in the automation. Thank you.
Use:
{{triggerissue.issuelinks.get(0).inwardIssue.key}}
Note this will only give you the first link that is mentioned in your issue.
If you want to loop over all the links, you should add an advanced branch with {{triggerissue.issuelinks}} and ilink as var. Then you can use {{ilink.inwardIssue.key}} in your comment. Maybe add a condition to be sure the link is to the correct project.
Hi @Rudy Holtkamp thanks a lot. It works wonderfully!
I have some more question. I've tried to do advanced branching, before that i added 2 more issues from Project C and Project D, however when i tested by commenting the variable ilink both inward and outward, they do not return any results. So i wonder how loop technique is set up. Can you advise again? Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.