Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Unable to get a specific form field in issues

Somik Mukherjee March 19, 2024

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.

 

1 answer

0 votes
Kishan Sharma
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 19, 2024

Hi @Somik Mukherjee 

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 ?

Somik Mukherjee March 19, 2024

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

Kishan Sharma
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 19, 2024

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 ?

Somik Mukherjee March 19, 2024

@Kishan Sharma Screenshot that the field Start Time exist in the issue:

Screenshot 2024-03-19 180409.png

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

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

 

 

Kishan Sharma
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 19, 2024

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 ?

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

Somik Mukherjee March 19, 2024

@Kishan Sharma Please find the attached field configuration in the form on what it is:

 

Screenshot 2024-03-19 211739.png

Kishan Sharma
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 20, 2024

Hi @Somik Mukherjee 

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.

Kishan Sharma
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 1, 2024

Hi @Somik Mukherjee Were you able to resolve this matter?

Somik Mukherjee April 1, 2024

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

Kishan Sharma
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 1, 2024

Hi @Somik Mukherjee 

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

Suggest an answer

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

Atlassian Community Events