Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Although we do not provide REST API support for Power Custom Fields at the moment, if you want to set certain values for a field using Jira REST API, there is a possibility. In order to do this, you need to use the same syntax as whensetting a default value.

The value should have the following format:

Code Block
{"label": "", "value": "<issue id>"}

...

Button handy
blanktrue
color#0052CC
nameSend Feedback
linkhttps://docs.google.com/forms/d/e/1FAIpQLScmToBe3vynAlb5fdKwCGxYqnTbDc66sIBgeecG2BuFDuHc7g/viewform?entry.2002826954=Example+9+-+Setting+field+value+using+Jira+REST+API+-+15481609
widthauto

Although Power Custom Fields does not currently have REST API support, it is possible to set values for fields using Jira’s REST API. To do this, use the following syntax:

  • For multiple values fields:

Code Block
{"label1":"","value":"10000"}#|#{"label2":"","value":"10001"}
  • For single values fields:

Code Block
{"label": "Some label", "value": "10000some_value"}

NoteThe field value provided to REST API should actually be JSON string of the given format. If you send an object formatted as described on the page, Jira will response with error messageHere is an example of how to set a field’s value.

See More

Child pages (Children Display)
pageExamples for PCF