Example 7: Set PCF values using Jira REST API
While Power Custom Fields (PCF) doesn't provide its own REST API, you can set field values using Jira's REST API.
Use the following JSON syntax:
For single-value fields:
{"label": "Some label", "value": "some_value"}
For multiple-value fields:
[
{"label1": "", "value": "10000"},
{"label2": "", "value": "10001"}
]
Starting with version 6.3.x, PCF requires JSON format when setting values through Jira's issue update endpoint. For detailed information about updating issues via REST API, including request parameters and response codes, refer to Jira's REST API documentation for the issue update endpoint: /rest/api/2/issue/{issueIdOrKey}.
The JSON array format is only supported and required in version 6.3.x and later. For versions before 6.3, multiple-value fields use a different format with values separated by #|#
:{"label1":"","value":"10000"}#|#{"label2":"","value":"10001"}
If you're using an older version, please ensure you're using the appropriate format for your version.
More use cases: |
---|
Need support? Create a request with our support team.
Copyright © 2005 - 2025 Appfire | All rights reserved.