Hi,
I have a custom fields to get the Sprint name and below is the response of that field.
"customfield_10871": [
"com.atlassian.greenhopper.service.sprint.Sprint@6ae1a392[id=70070,rapidViewId=14762,state=CLOSED,name=14 ABCXXXDDD4.1,startDate=2023-01-25T18:17:00.000-05:00,endDate=2023-02-07T23:17:00.000-05:00,completeDate=2023-02-07T11:28:50.010-05:00,activatedDate=2023-01-25T18:17:44.213-05:00,sequence=70070,goal=<null>,autoStartStop=false]"
]
Field description as below
{
"id": "customfield_10871",
"name": "Sprint",
"custom": true,
"orderable": true,
"navigable": true,
"searchable": true,
"clauseNames": [
"cf[10871]",
"Sprint"
],
"schema": {
"type": "array",
"items": "string",
"custom": "com.pyxis.greenhopper.jira:gh-sprint",
"customId": 10871
}
},
Now I want to pass the Sprint name as "14 ABCXXXDDD4.1" while doing search. How to do it? Can some on give an idea and help me? I am using like below but it fetches all issues in the JIRA and null in customfield_10871
request Body:
{
"jql": "customfield_10871 ~ \"14 SABCXXXDDD4.1\""
}
or curl as
curl --location --request GET 'endpoint.com/search' \
--header 'client_id: xx' \
--header 'client_secret: xx' \
--header 'idp-trace-id: xx' \
--header 'x-transaction-id: xx' \
--header 'Cookie: ixp=xx; ixp=xx; ixp=xx; ixp=xx' \
--header 'Content-Type: application/json' \
--data '{
"jql": "customfield_10871 ~ \"14 SABCXXXDDD4.1\""
}'