I'm working in JIRA Automation to set the fixVersions field. The fixVersion has already been creaWe've got a new fix version each month in the form of:
ABC Version YYYY-MM
I'm trying to set this for an issue using Jira Automation in the advanced JSON field. I'm getting this error:
Error creating issuedata was not an array (fixVersions)
Here's what I've got:
{
"update": {
"fixVersions": [
{
"set": "ABC Version {{now.format("yyyy")}}-{{now.format("MM")}}"
}
]
}
}
Hello @Don.Sevcik ,
Based on the approach you are describing, as the version is already created, and you are simply trying to choose a spiciffic one based on the current date ordering the versions in the releases and using the edit issue function in the feature for the fix version field in Jira Automation to Set the fix Version to either "Next Unreleased Version" or "Last Released Version".
So If you are creating a new release each month, and releasing the previous months version, you can leverage the ord of the releases to get the following results.
If the previous month is released at the end of each month then the "Next Unreleased version" option would pick the next unreleased version from the bottom most placement in the releases for the project.
If you choose "Last Released Version" it will pick up the bottom most Released version in the list.
As an Example in the following screenshot the bottom most released version is 2.0, and the bottom most unreleased version is 3.0:
Let me know if this would work better for your use case over the custom JSON.
Regards,
Earl
I want to set an automation rule that checks if the issue is a story and if the fixVersion is set, to clear the fix Version field. Is there a JSON snippet that I can add to my rule to accomplish.?
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.