How to update user-defined version field in Jira?

Before we use issueBuilder.setFixVersions(jiraBuild.fixVersion) to set Fix Version/s. It works well.

Now, our Jira systems has updated, and new version field Target Version is used instead of Fix Version/s.

If issueBuilder.setFixVersions(jiraBuild.targetVersion) is used,

the error message: RestClientException{statusCode=Optional.of(400), errorCollections=[ErrorCollection{status=400, errors={fixVersions=Field 'fixVersions' cannot be set. It is not on the appropriate screen, or unknown.}, errorMessages=[]}]}

Quetion, which method I should use to update this new version field?


1 answer

1 accepted

0 vote

Your target version is now a "custom field", not a system field you can use directly in the standard API.  You need to be treating it as a custom field now.

You're right. Thanks. Any idea on how I find the method to set custom field? I am searching ...

Use setFieldValue. Done.

Suggest an answer

Log in or Join to answer
Community showcase
Louis De Jaeger
Posted 4 hours ago in Off-topic

Friday fun: your best joke

Hi all Lets make this Friday fun really fun and post one (or more) of your best jokes! The joke can be about an Atlassian product, or just a really fun joke you want to share! I’m not the best j...

20 views 1 2
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot