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 votes
Accepted answer

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 Tuesday in United States

Topic Tuesday: What's your favorite topic?

Good morning All, Our goal is to get you into the habit of while enjoying your favorite morning drink you are checking the NOVA "space" for topics and comments. Your input is really needed and...

57 views 4 0
View post

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