Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

What type of field is "Linked issues"?

Hi,

 

I'm just needing to document the field type and if possible, the limitations around searching by that field using JQL.

"Linked issues" (in JQL = issueLinkType)

Use case: Trying to search for tickets with only linked issues of "is blocked by" and in "Done" status. Currently search results include other linked issues types if it contains "is blocked by".

Thanks!

2 answers

1 vote
Ravina
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.
Nov 03, 2023

Hi @rodney e To get the linked issues with specific linktype you can use the below JQL

issue in linkedIssues(ABC-123,"is duplicated by")

If you want a get all issues with Block type or "is blocked by" linked type you can use the below JQL but this will require a script runner plugin as some JQL functions are coming from that plugin

issueFunction in hasLinks("blocks") OR issueFunction in hasLinks("is blocked by")

Please check the below document for more details

https://support.atlassian.com/jira-work-management/docs/advanced-search-reference-jql-functions/#Advancedsearchingfunctionsreference-linkedissuelinkedissue

https://docs.adaptavist.com/sr4js/latest/features/jql-functions

Thanks

Ravina

 

Hi @Ravina ,

Appreciate the response but I'm not able to use your JQL since I don't have Scriptrunner.

0 votes
Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 03, 2023

Hi @rodney e , linked issues is it really a field per se. However, you can achieve your use case by using the following.

Status = done and issuelinktype = "Is blocked by" and  issuelinktype not in (a, b, c, d...)

What you will need to do is to replace a, b, c, d... with every link type other than "is blocked by". That is the only way to get the "only" part of your use case.

Hi @Jack Brickey ,

Thank you for the help. Your JQL works for isolating the needed "is blocked by" but I'm looking for "is blocked by" and in "Done" status. The issueLinkType and linkedIssueStatusCategory fields seem to be mutually exclusive.

 

My JQL:

project = ABC AND (issueLinkType = "is blocked by" AND linkedIssueStatusCategory = "Done")

Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 03, 2023

So that I clearly understand your use case let's take the following example.

Issue A is linked to issue B. Issue A "is blocked by" issue B which means issue B "blocks" issue A.

For now let's assume that both A and B are in the done status. Which issue do you want your JL to find?

I would like to find "Issue A" but if "is blocked by" is the only linked issue type in a "Done" status.

 

JQL doesn't seem to be able to isolate linked issue type with a status. It treats them separately.

EXAMPLE: Project = ABC AND (issueLinkedType = "is blocked by" AND linkedIssueStatusCategory = "Done")

RESULTS:

Issue A "is blocked by" Issue J. Issue J is "Done". <---EXPECTED

Issue E "is blocked by" Issue Q. Issue Q is "To do". <---UNWANTED

Issue E "relates to" Issue L. Issue L is "Done". <---UNWANTED

 

I don't think JQL can get that granular with "Linked issues". The next best thing is for me to document why, i.e. what is the schema for "Linked issues"?

Appreciate the help.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events