The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

In JQL - how to report "Return all issues that block any issue with the X component"

Mike Hirons
July 9, 2021

Ultimately - I want JQL to report anything that is blocking any issue that has a certain attribute (in this case, a particular component).

I know that I can report all issues that are blocked and have the particular component attribute, but I can't retrieve a list of what is actually causing the block.

Any suggestions?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Mohamed Benziane
Community Champion
July 9, 2021

Hi,

Do you have Scriptrunner ? May be you can start with the haslink function

https://scriptrunner.adaptavist.com/latest/jira/jql-functions.html#_haslinks

Mike Hirons
July 9, 2021

Thanks. Generally prefer to avoid using script runner, but have managed to get the query to work with your advice.

issueFunction in linkedIssuesOf("Project = PROJECTNAME AND Component = X", "blocks")