Forums

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

Flag field parsed to null in REST API

Iheb Bouhamed March 18, 2025

Hello, I'm still learning how to parse Issues data from Jira API. To make it short for you, I have an Issue which is Flagged :

When I request this url :

https://project,atlassian.net/rest/api/2/issue/SCRUM-14?fields=customfield_10021

I got this reponse in POSTMAN : 

{
"expand": "renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations",
"id": "10073",
"key": "SCRUM-14",
"fields": {
"customfield_10021": [
{
"value": "Impediment",
"id": "10019"
}
]
}
}

As you can see the field for the flagged is there.

I'm trying to parse the data in backend :

 

Object flagField = fields.get("customfield_10021");
logger.debug("Raw customfield_10021 data for {}: {}", issueKey, flagField);

Every field in the Issue is visible and well parsed and saved , except this always null.

1 answer

1 accepted

1 vote
Answer accepted
Iheb Bouhamed March 18, 2025

Sorry it was my mistake , I missed the customfield in the jql parameter.

Suggest an answer

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

Atlassian Community Events