Forums

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

How do I to add checkbox in Advanced field editing with JSON

Douglas Oliveira
Contributor
August 24, 2021

what code do i use to add a specific checkbox to a subtask?

1 answer

1 accepted

0 votes
Answer accepted
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 25, 2021

Hi Douglas,

I am not sure I understand exactly what you are looking for here.  Is it that you are trying to set a custom field value on a particular Jira issue?

Or are you trying to add possible checkbox values to an existing field?

Either should be possible to do with JSON using the REST API.  We have a reference document about it over in https://developer.atlassian.com/cloud/jira/platform/rest/v3/

For an existing field on that issue, you should be able to use the Edit issue endpoint of PUT /rest/api/3/issue/{issueIdOrKey} in order to update the custom field value for that issue.

However if the field itself doesn't yet have the value you want to be able to select, the REST API endpoint to call can be different depending on whether that custom field was created by a user in Jira, or if that custom field was created via a Connect App.  If you can let me know some more specifics about what you are trying to do here, perhaps I can provide a more specific means to do what you want here.

Andy

Douglas Oliveira
Contributor
September 2, 2021

Thanks @Andy Heinzer !

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events