Forums

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

Getting the Feature Link (Epic Link?) using REST API JQL

stealthrt June 12, 2025

Hey all I am trying to figure out how to get my Feature Link value from a FQL using the REST API.

When I do:
/rest/api/2/search?jql=sprint in openSprints() AND assignee="bob"

I get a lot of data back but I can not find where it has that featureLink.

In the example image above, I would be looking for the value of "Mars Landing". Even though it says Epic Link there which I think I read Feature Link was being renamed Epic?

I need to be able to populate my combobox with a list of those as it does in jira itself.

Any help would be appreciated!

1 answer

0 votes
Florian Bonniec
Community Champion
June 12, 2025

HI @stealthrt 

 

On Data Center it still name "Epic Link", you should look for the custom field associated id 'customfield_XXXX'. This will have as value the key of the Epic, then you can query this issue with the api to get the summary for instance or more info about the Epic.

If on your side it's named Feature Link, probably your company renamed the field which is not a good practice but I've seen this in other company as well.

 

Regards

stealthrt June 12, 2025

Thanks for the reply Florian.

Where exactly should I be looking for it? I do a search for what it says on the website in the api rest that comes back but its nowhere. What would the link look like? Most of the custom fields are empty.

When I do find it, what would be the JQL to send in order to get that information back?

Florian Bonniec
Community Champion
June 12, 2025

You can find the field ID following this documenation

https://confluence.atlassian.com/jirakb/learn-multiple-methods-to-obtain-custom-field-ids-for-jira-and-jira-service-management-products-744522503.html

Inspect the custom field in the Issue View page

 

Once you have it, you can search for customfield_XXXX in the response of your api call.

 

Regards

 

Like stealthrt likes this
stealthrt June 12, 2025

Thanks for that - found the custom field.

It has a value in the form like bob-1234. How would I get the feature link (or Epic Link) from that?

Florian Bonniec
Community Champion
June 13, 2025

You have then to query the api again with 

<base_url>/rest/api/latest/issue/bob-1234

 

Regards

stealthrt June 13, 2025

When doing that I still do not see the value that is on the website? It's still missing.

When I do the query /field I can find the custom field and this is the json for it:

{
  “id”: “bob-1234”,
  “name”: “Featured Link”,
  “custom”: true,
  “orderable”: true,
  “navigable”: true,
  “searchable”: true,
  “clauseName”: [
      "xx[1234]",
      “Epic Link”
  ],
  “schema”: {
    “type”: “any”,
    “custom”: “xxx.xxxx.xxxx.xx-epic-link”,
    “customId”: “1234”
  }
}

 

stealthrt June 16, 2025

Anyone?

Florian Bonniec
Community Champion
June 18, 2025

Is Featured Link, Epic Link renamed or is it something custom your company implemented ?

 

Regards

Suggest an answer

Log in or Sign up to answer