Hope someone knows a way to resolve the following task:
Trigger: Rule is triggered when an issue is transitioned from status A to B.
What should the rule do: If an EPIC (in this case with the same name as the issue) exists, link the issue to the existing epic.
Problem: Via edit issue and selecting the field Epic-Link i can only choose
I assume that none of these is the right one . So I figured that i could use the advanced option to manually set the epic-link - but this only works with the issue key of the epic - not the name.
{
"fields": {
"Epic-Link": "{{issue.summary}}"
}
}
So, either I need a way to get the Epic issue key or a different approch to this problem.
Hi @jbeg
For a question like this, please consider posting an image of your complete rule and an audit log entry from a failed run. That will provide the community some context to try to help. Thanks!
You do not indicate if you are using Jira Cloud or Server/Data Center, so I am going to assume for now "Cloud"...
When adding the value to the edit, type in the value {{lookupIssues.key}} and it will appear below the field, then select it to use the smart value.
Best regards,
Bill
Hi Bill,
thank you very much for the reply. We are using Jira Server - so if I am not mistaken, the lookup feature is not available.
This would probably solved my quesion the way you described it. Unfortunately this feature ist not available on server https://jira.atlassian.com/browse/JIRAAUTOSERVER-53
Are there any other solutions?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @jbeg
For server without Lookup Issues, how about a slower work-around using the bi-directional nature of issue links...
Please note that I haven't tried this as I do not have server version, so let me know how this works (or doesn't ;^)
__Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill Sheboy ,
this was a quality answer! Thank you very much!
It is quite a workaround and complex for just such a simple task - but for the server version quite nessescary as it looks.
I got the link key from {{issue.issuelinks.first.outwardIssue.key}} so no regex magic was needed.
Thanks again for your help
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.