I'm trying to copy fix version(s) from issues in project A to linked tasks in project B.
My automation works fine when there is only one fix version, but when I have more than one, Jira sees the comma delimited string of fix versions as a single fix version and reports an error.
What do I need to change so that each version returned by {{lookupIssues.fixVersion.name}} is seen as an individual fix version when populating the linked task?
What my rule looks like...
What the audit log is showing...
Use a create variable action to store the fix version:
For Linked issue branch:
Thanks for the suggestion, @YY Brother !
Except for the differently named variables, is this what you were suggesting I do?
When I follow these steps, I get the following error in the audit log:
If I use "set": the automation runs successfully but the Fix versions field still is not populated after the automation runs.
{
"fields": {
"fixVersions": [{"set:" {"name": "{{linkedFixVersions}}"} }]
}
}
I also tried setting Fix versions equal to {{linkedFixVersions}} like so, but this didn't work either.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Derek Owens ,
While I don't have experience with what you are asking about, I recommend you review this Atlassian Community post:
We try not to link out when answering a question, but that post is about setting more than one fix version either via a list iterator, or using JSON functions.
The proposed solution on that ticket worked... If something similar works for you it would be great if you would post an update here!
-- Christopher
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for sharing tihs, @Christopher Maxwell! This is exactly what I'm trying to do!
I followed the same actions that @Jeffrey Bistrong showed in his screenshots but I'm still getting an error in the audit log.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Derek Owens , I'll start off by saying - good job on the screenshots/documentation. Troubleshooting isn't always easy, but it's easier with more, rather than less, info!
Are you able to manually assign those fix versions to ticket PLTRR-2615?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, @Christopher Maxwell but I'm lazy and wanted to automate it since it won't just be copied to this task but also this task's sub-tasks.
I'm pretty certain this isn't the most elegant way to assign FV, but I was able to pass the first FV in the list index to the subtask with this JSON.
{
"fields": {
"fixVersions": [{"name": "{{linkedFixVersions.replaceAll("[\[|\]|\s]","").split(",").get(0)}}" }]
}
}
If there's a way to grab the total number of indexes in the FV list and loop through each of these with the code above, then I think I'd be able to grab all of them.
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.