Unable to get a specific form field in issues
Asked by Somik Mukherjee:

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.


Answers:
author: Kishan Sharma
body: Hi [@Somik Mukherjee](/t5/user/viewprofilepage/user-id/5456285)

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 ?

comments: author: Somik Mukherjee
body: Hey [@Kishan Sharma](/t5/user/viewprofilepage/user-id/554991) ,

I do have value assigned to that field but it is still not showing up in the get issues result.

Thanks,

Somik


author: Kishan Sharma
body: Thank you for confirming [@Somik Mukherjee](/t5/user/viewprofilepage/user-id/5456285) Can you please share screenshot of an issue having those fields with values and the rest api endpoint you are using ?


author: Somik Mukherjee
body: [@Kishan Sharma](/t5/user/viewprofilepage/user-id/554991) Screenshot that the field Start Time exist in the issue:

![Screenshot 2024-03-19 180409.png](https://community.atlassian.com/t5/image/serverpage/image-id/312994iB1065DF96FE1863A/image-size/large?v=v2&px=999 "Screenshot 2024-03-19 180409.png")

Able to get the field using endpoint /rest/api/latest/field

![Screenshot 2024-03-19 180602.png](https://community.atlassian.com/t5/image/serverpage/image-id/312995iA43DCF23D4345DD7/image-size/large?v=v2&px=999 "Screenshot 2024-03-19 180602.png")

When trying to run endpoint /rest/api/3/issue/CSWFM-30944?fields=\*all getting the field returned as null:

![Screenshot 2024-03-19 180736.png](https://community.atlassian.com/t5/image/serverpage/image-id/312996iFACC7B15665143C0/image-size/large?v=v2&px=999 "Screenshot 2024-03-19 180736.png")


author: Kishan Sharma
body: Hi [@Somik Mukherjee](/t5/user/viewprofilepage/user-id/5456285) 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 ?

![start-time.png](https://community.atlassian.com/t5/image/serverpage/image-id/313028iE811092DE3590724/image-size/large?v=v2&px=999 "start-time.png")

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 ?

![planned-start.png](https://community.atlassian.com/t5/image/serverpage/image-id/313029iE54E9823DD159E8A/image-dimensions/332x64?v=v2 "planned-start.png")


author: Somik Mukherjee
body: [@Kishan Sharma](/t5/user/viewprofilepage/user-id/554991) Please find the attached field configuration in the form on what it is:

![Screenshot 2024-03-19 211739.png](https://community.atlassian.com/t5/image/serverpage/image-id/313065i12183869EE0361A0/image-size/large?v=v2&px=999 "Screenshot 2024-03-19 211739.png")


author: Kishan Sharma
body: Hi [@Somik Mukherjee](/t5/user/viewprofilepage/user-id/5456285)

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](https://developer.atlassian.com/cloud/forms/rest/api-group-forms-on-issue/#api-issue-issueidorkey-form-formid-externaldata-get)

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.


author: Kishan Sharma
body: Hi [@Somik Mukherjee](/t5/user/viewprofilepage/user-id/5456285) Were you able to resolve this matter?


author: Somik Mukherjee
body: Hi [@Kishan Sharma](/t5/user/viewprofilepage/user-id/554991)   

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


author: Kishan Sharma
body: Hi [@Somik Mukherjee](/t5/user/viewprofilepage/user-id/5456285)

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://developer.atlassian.com/cloud/forms/rest/api-group-forms-on-issue/#api-issue-issueidorkey-form-formid-externaldata-get)

<https://api.atlassian.com/jira/forms/cloud/{cloudId}/issue/{issueIdOrKey}/form/{formId}/externaldata>


Tags: cloud

jira-service-management

jira-service-management-cloud