Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×

Forums

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

Is there a (native) Jira way to query all existing link types and names?

SWAPNIL SRIVASTAV
Contributor
October 5, 2020

 Is there a (native) Jira way to query all existing link types and names for an End User? REST APIs excluded. JIRA version - 7.13.5

2 answers

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 5, 2020

What do you mean by "query all existing link types and names for an end user"?  Links are between issues, they have nothing to do with users (beyond people being able to use them)

SWAPNIL SRIVASTAV
Contributor
October 5, 2020

Hello @Nic Brough -Adaptavist- ,

Thank you for the response.

If the users know all the links, then only they will be use the most appropriate one. We have a lot of custom links in our instance.

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 5, 2020

That does not explain what you mean by "query all existing link types and names for an end user"?

Could you explain that please?

SWAPNIL SRIVASTAV
Contributor
October 6, 2020

Hello @Nic Brough -Adaptavist- ,

 

By "query all existing link types and name", I mean , is there any way an end user can see all link types and names. Is there any JQL query or any other approach to do so?

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 7, 2020

>is there any way an end user can see all link types and names.

Yes, they will see the list as soon as they try to use the link function when they start to think about linking issues together.

>Is there any JQL query or any other approach to do so?

JQL has some functions that look at links, but you can only search on real data, so your people will have had to use issue links before you can search for them.

SWAPNIL SRIVASTAV
Contributor
October 7, 2020

Hello @Nic Brough -Adaptavist- ,

Thank you for the response.

List displayed while linking issues only shows the links which are enabled in link scheme of project. The ones which are disabled are not shown.

Yes, I understand that JQL functions like "hasLinks" and "linkedIssuesOf" work on issues and real time data.

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 8, 2020

I don't understand the first part of your comment. 

Do you have a question about some part of what has been said before?  Making a statement that uses some words from the rest of the conversation doesn't tell us anything about what you are looking for from the conversation.

0 votes
Niranjan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 5, 2020

Hi - REST API is a simple method to get such information. If you want to exclude RESTAPI option for users, you jira admin can run restapi once and document it in a confluence page and make that page available for users. In fact users should be able to see the options in the Linked Issue fields anyways, but if you want to expose the link type ids, you can consider the option of documenting them in confluence.

SWAPNIL SRIVASTAV
Contributor
October 5, 2020

Hello @Niranjan ,

Thank you for the response.

Using confluence would not be a native solution.

Niranjan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 5, 2020

Users should be seeing all the links in Linked Issues field, when they try link issues

SWAPNIL SRIVASTAV
Contributor
October 5, 2020

Hello @Niranjan ,

Thank you for the response.

All links are not visible in Link operation. Only those links are visible which are enabled in the Link Scheme attached to project.

Niranjan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 5, 2020

Ok @SWAPNIL SRIVASTAV - In that case, I do not think that non-admin users can access the issue linktype data without the intervention of the admin. JIRA admins should document it for users. May be in confluence or create a JIRA issue with issue link types in the description. 

SWAPNIL SRIVASTAV
Contributor
October 6, 2020

Hello @Niranjan ,

Thank you for the response.

Suggest an answer

Log in or Sign up to answer