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-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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