Jira Search API not returning subtasks or issuelinks

I am search for a specific Epic using the /search API. I am sending a POST request like so:

{
  jql: 'id = "TCK-4000"',
  startAt: 0,
  maxResults: 50,
  fields: ['*all']
}

Which returns fine and I am able to parse the JSON from the response and get something like:

[
  {
    "expand": "operations,versionedRepresentations,editmeta,changelog,transitions,renderedFields",
    "id": "ID",
    "self": "LINK",
    "key": "TCK-4000",
    "fields": {
      "issuetype":
      ...

However, in the response I see:

"subtasks": [],
"issuelinks": [],

 

Which is incorrect because I can browse the issue manually and see 5+ subtasks/linked issues. Is there something else I need to add? This is a major issue.

1 answer

0 vote

Are you sure these issues are links or subtasks?  And not Epic Links?

Yeah they are all set as Tasks. Is there anyway to include the Epic children?

I'm sorry, I was not clear there. The task type does not matter, what I was asking about was the type of link, or, in more abstract terms, the "relationship". You could use "issue links" to link an issue to another. You could create "subtasks" on an issue, which implies a parent-child relationship. And the one I'm interested in here - you can create "Epic links" to issues to show that they are part of the epic. You can probably see where I'm headed with this - links and subtasks are represented in your response JSON, but I suspect the third one, which should be coming out as a custom field, rather than the "system field" level link or subtask.

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Feb 15, 2018 in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

1,130 views 6 19
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot