Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do you reference Fix versions - Next unreleased version in custom JSON?

I want to set my rule to add the Next unreleased version instead of setting it to the Next unreleased version but I dont know what the field name is called. This is what I'm envisioning:

{
"update": {
"fixVersions": [
{
"add": {
"name": fixversions.nextUnreleasedVersion
}
}
]
}
}
Is this possible? I've been looking for a way to see the corresponding json to my current rule action but I haven't found it.Screen Shot 2021-12-16 at 1.39.28 PM.png
Thanks for your help,
Lynne

 

1 answer

1 accepted

1 vote
Answer accepted

Hi @Lynne Robinson 

If I understand your use case, you want to add the Next Unreleased Version to fixVersion in addition to any current values in fixVersion.  Is that correct?  If so...

Short version: you cannot do that without a work-around

Longer version:

JQL knows about Next Unreleased Version for queries, and rules know about that value for field edits, but the issue fields know nothing about other versions/releases: only their current values.

One work-around would be:

  • save the current value of fixVersion in a created variable
  • use edit to set the value of fixVersion to the Next unreleased version
  • use the re-fetch action to reload the trigger issue
  • and now edit the issue again, adding the saved values from the created variable using the JSON edit format

Kind regard,
Bill

Thank you @Bill Sheboy for the workaround! Your steps worked perfectly and my fixVersions are now exactly what I needed. Appreciate the help!

Like Bill Sheboy likes this

Awesome! I am glad to learn that helped, Lynne.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Jira

Do you use Jira Cloud with Microsoft Teams?

Hi, Jira users! Do you use Jira alongside Microsoft Teams? We want to hear how you’ve used the power of Jira Cloud and Microsoft Teams (via the Jira Cloud for Microsoft Teams app) to achieve a team...

517 views 1 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you