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

This widget could not be displayed.

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 Sign up to answer
Community showcase
Posted yesterday in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

48 views 2 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