I am trying to get form data associated with the issue /rest/api/3/issue but it is missing 1 or 2 fields. I am able to get the customFields by /rest/api/latest/field but there is no information on why that field is not available despite stating it as searchable and configurable in the form creation dialog.
Welcome to the Atlassian Community!
Are there any values mapped to the fields you are searching for ? If no, can try adding values to those fields and then perform a GET ?
Hey @Kishan Sharma ,
I do have value assigned to that field but it is still not showing up in the get issues result.
Thanks,
Somik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for confirming @Somik Mukherjee Can you please share screenshot of an issue having those fields with values and the rest api endpoint you are using ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Kishan Sharma Screenshot that the field Start Time exist in the issue:
Able to get the field using endpoint /rest/api/latest/field
When trying to run endpoint /rest/api/3/issue/CSWFM-30944?fields=*all getting the field returned as null:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Somik Mukherjee thank you for the screenshots. I am unable to reproduce it at my end.
Just wanted to check with you on the value you provided in Start Time field - Can see only time stamp there 14:00 without a date. How is this being set ?
Example of date time picker field, in my instance, it have two input areas: one to specify the date, and one to specify the time. Is this correct ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm glad you provided the screenshot. It really helped to bring some clarity to the situation. Just to clarify, this is a form field and not a Jira custom field, so the REST API endpoint will be different for this case. Please refer - Get external form data
Endpoint -https://api.atlassian.com/jira/forms/cloud/{cloudId}/issue/{issueIdOrKey}/form/{formId}/externaldata
Example -
curl --request GET --url 'https://api.atlassian.com/jira/forms/cloud/bc238a80-asdf-asdf-asdf-1231231230/issue/INV-269/form/f23dgf43-2fc9-41fe-9fb3-077c122fbb81/externaldata' --user 'email:apitoken' --header 'Accept: application/json' -H "X-ExperimentalApi: opt-in"
Make sure to change cloudID, IssueID, formID, email and api token in the example above. Give it a try and see if this works for you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Somik Mukherjee Were you able to resolve this matter?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Kishan Sharma
I tried using /gateway/api/proforma/cloudid/{cloudId}/api/3/issue/{issueId}/form/{formId} but did not get all fields of the form.
Some of the answers are missing in the response.
Can you please tell me if this is the correct API or something else is available?
Thanks,
Somik Mukherjee
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you tried the one that I shared earlier? I was able to get responses using that API endpoint. Please refer - Get external form data
https://api.atlassian.com/jira/forms/cloud/{cloudId}/issue/{issueIdOrKey}/form/{formId}/externaldata
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.