You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Hi,
Running Jira Server 8.5.12
We are using the Jira search API `rest/api/2/search` to get details of a task including `issuelinks` but it always returns an empty list of that field even though there are issues linked to the task. An example of the request is below
curl --request POST \
--url SERVER_URL/rest/api/2/search \
--header 'Accept: application/json' \
--header 'Authorization: xxxx' \
--header 'Content-Type: application/json' \
--data '{
"jql": "issue = ISSUE-1",
"fields": [
"assignee",
"created",
"creator",
"issuelinks",
"issuetype",
],
"expand": ["changelog"],
"maxResults": 100
}'
Also tried using `"fields": [*all]` with the same result.
What is kinda surprising is that when I use the issue endpoint `/rest/api/2/issue/{issueIdOrKey}`, the issue links are present in the response.
Wondering what could be causing that behavior if anyone has encountered that.
Thanks
I generally use the Jira Python library and I see the same thing. The search returns issue and then I have to call that second issue REST resource to get the issue links
I looked for an expand parameter value to do this but didn't see one
Yeah, it is very weird. Doing the extra call isn't really a great option for us since we are querying for many issues at the same time so don't want to overload the server.
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.