I have created an automation rule that is manually triggered from a Jira Item I have created that create 9 more Jira items - one for each language I am translating into.
I now want to use automation to send an email to the translation company, listing the 9 different Jira items. The Dutch Jira item is always the base Jira item + 2, the German is always base + 3, and so on
I need to get the number part of the issue.key and add an integer to it, but this is not valid. For example, when I try creating a smart value NLIssueKey:
{{#=}}{{issue.key}}+2{{/}}
I get this error:
I understand why, but don't know how to fix it. Any ideas?
This won't work. It's not working because it has not been coded for, because you can't code for it in the way you are assuming things work.
There's nothing to "fix" here because you're trying to do something that can't be done.
You are assuming that "create an issue in this project" will create a series of issues that will be sequentially numbered after the current issue (so when you create ABC-123, then create three subtasks in it, they will be ABC-124, ABC-125, ABC-126). They are not.
In the most common cases, they will be, but when you're using a Jira with lots of active people, there's a growing chance that someone will be creating issues alongside yours,so they might grab a number you were assuming your sub-tasks might take.
You need to stop guessing what issue ids Jira might create, and instead gather the ids it actually creates after it has finished doing it, then gather them together into a mail.
Yes, and...to what Nic and Joe noted:
What you can do to solve this is use the {{createdIssues}} smart value in your automation rule which creates the issues to get the keys. For example:
Here are the created issues' keys:
{{#createdIssues}}{{key}}{{^last}}, {{/}}{{/}}
Please look here for more information about that smart value: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--createdIssues--
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you. This could be useful in my alternative automation since it isn't possible to do what I had hoped to.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.