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!
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
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can find the field ID following this documenation
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You have then to query the api again with
<base_url>/rest/api/latest/issue/bob-1234
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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”
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is Featured Link, Epic Link renamed or is it something custom your company implemented ?
Regards
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.