Dear all,
in Jira (Cloud version) we use sub-tasks for client deliveries. The sub-tasks' description contain every task which is included in the respective delivery (release) in the form
[PROJECT-1234] Summary
[PROJECT-1235] Summary
I sure know that there are better ways to do it, but that's not the point here since the client requires us to do so.
I have played around with Jira automation, but am struggling with the following task:
1) Automatically link the issue key PROJECT-XXXX within the description to the respective issue.
2) Automatically link the issue mentioned in the description as "relates to" within the delivery sub-task.
Is there any way to realize this using Jira automation? What would be the approach?
Thanks for any help.
That is it.
Hi Rudy, thanks a million. I could successfully implement this automation with some minor changes. At least the issues from the description are now linked with the "relates to" relation. Next step would be to also delete links when the respective entry in the description is deleted.
BTW, since we're using RegEx here, can we also use back references?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Good to hear that you resolved it.
The second question is a lot harder.
You need to create update your created automation rule.
Place an if/else condtion.
When the regex is filled, use the previous logic.
If it is not filled, then create a new var oldkey with the same sort regex instead of summary use the {{fieldChange.from}}
If the regex is filled, then you know that link you need to remove.
Create an advanced branch for {{issue.fields.issuelinks}} (with as smart value ilink).
Then add a condition for {{ilink.outwardIssue.key}} equals oldkey, if that equals you need to remove the link. This can only be done with an API call, see here for the details.
Back references: I think so, see https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html
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.