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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

JQL query to list of blocked issues

We have a story and the story has 'n' number of sub-tasks and each subtask may/may not linked issues (issue type = bug) is blocked by.

I need to frame the JQL query with below condition

1. List out all the subtask which have linked issues?.

2. Get the linked issues count of each sub-task wise? 

2 answers

0 votes
Ignacio Pulgar Community Leader Feb 06, 2020

Hi @prabakar_m 

The first query requires the help of a third party app like ScriptRunner for Jira Cloud, thanks to the hasLinks() function:

issueFunction in hasLinks("is blocked by") AND type = Sub-task

The count of linked issues for each subtask is even trickier to obtain on Cloud. Maybe you can export to csv using the semicolon character (;) as a separator and open the resulting file with a spreadsheet tool (ie: Excel) and use one of its functions to obtain the desired numbers.

Alternatively, your two purposes could be covered by Structure Cloud app. I've just used the Server version, but even if it counted with half its features, it would be definitely worth it.

Hope it helps.

Hi Prabakar,

I can confirm that the query provided above is for ScriptRunner for Jira Server and will not work with ScriptRunner for Jira Cloud due to the differences in the plugin which you can see in the documentation page located here

I can confirm that in ScriptRunner for Jira Cloud that hasLinks is a JQL keyword as described here and on this page you will see examples of how to use this keyword to search for issues which have links.

I hope this information helps.

Regards,

Kristian

Like Ignacio Pulgar likes this

Hi,

There is a number of JIRA plug-ins, which provide a JQL function for your case:

We are the vendor of the latest one, so feel free to ask any question regarding it.

Thanks!

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you