I'm struggling how to use the link issues action in automation for Jira. I've setup a rule that when a specific issue type is created, it creates another of a different type. I want these two to be linked but can't get my head around how to do that...
Thanks!
Hi Saskia,
So your rule for this would have to look like this:
So I think the trick here is the related issues condition to branch off for the newly created issue and then link that back to the issue that originally triggered the rule. The issue on the main branch always refers to the trigger issue and not the created issue. We've already got https://codebarrel.atlassian.net/browse/AUT-277 as well to make this particular case a bit easier!
Hope this helps!
Cheers,
Andreas
I think I'm doing something wrong... It's still not linking them - have I missed something? Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Saskia,
That looks about right. Is this a project specific rule though (you can see this in 'Rule details')? Is the 'CONFIG' project different to the project this rule is defined in?
If that's the case, then you need to make this a global rule that can perform actions across different projects.
You can do so by visiting global admin -> system -> automation rules then edit the rule details and change this to be a global rule.
You'll probably want to add a JQL condition immediately after the trigger to check the created issue is in the current project (so project = 'ABC').
Hope this helps.
Cheers,
Andreas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I made no changes and noticed this morning whilst someone else was creating a ticket it linked them... It works, not sure why it wasn't yesterday!
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
A related question... How do I refer to related issues? E.g. when referring to a parent issue it would {{issue.parent.fieldname}}.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Saskia,
Great the linking is now working.
For parent issue you should be able to use:
{{issue.parent.fields.summary}}
(to get the 'summary' for example)
Cheers,
Andreas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Gotcha - didn't realize the parent parameter worked for related items too, assumed it was just child/parent relationship.
Will give that a go.
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.