Create Issue with Form data using API

Marc Lloyd Menguito September 20, 2023

Hi, I have a JIRA Project where the setup is when the user creates an issue, they input data into the form from the portal. This form is then attached to the ticket, so I guess technically it's not in the same "screen"? 

Now when I use the get issue API for this ticket, it returns the customfields and their value, but when I try to create an issue using the POST API, it returns the error:

Field 'customfield_10222' cannot be set. It is not on the appropriate screen, or unknown.
I have tried looking for documentations related to forms API and the post issue API.
I have tried looking at forms API as well but it doesn't look like there's an API to submit a new form on a new issue.

1 answer

1 accepted

0 votes
Answer accepted
Marc Lloyd Menguito September 21, 2023

Update: It looks like the servicedesk REST API has what I need. So i'll be looking into that.

https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-servicedesk/ 

Marc Lloyd Menguito September 21, 2023

So the answer to my question was POST /rest/servicedeskapi/request.

My only issue is the format of the "users" object in the form object.

according to the documentation the format is 

"qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d69abfa3980ce712caae"

I am assuming the first half is the cloud id since that matches the format...

and the second half is the user id.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events