Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to update user-defined version field in Jira?

Robin Li
May 11, 2017

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?

Thanks.

1 answer

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
May 11, 2017

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.

Robin Li
May 11, 2017

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

Robin Li
May 11, 2017

Use setFieldValue. Done.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events