You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
For any Jira that is blocked by another team's Jira , we are using the haslink function and if the linked JIra is "is blocked by" then based on the status of the blocker Jira we would like to show our Jira to be as BLOCKED.
So if the blocker Jira is in Open, In progress , in review etc state then it is still BLOCKING but once the blocking Jira has been CLOSED or RESOVLED then the blocker is considered as not a blocker however team doesn't want to just remove the issuelink as it will be used for references.
something like this :
project = "PXYZ" AND (issueFunction in hasLinks("is blocked by") AND issuelinkstatus not in (Closed, Resolved))
Hello @Ishan Banerjee
Welcome to the Atlassian community!
Are you working with Jira Cloud or Jira Server/Data Center?
Do you have any third party apps that extend JQL functionality, like Adaptavist ScriptRunner or JQL Tricks?
Hi @Ishan Banerjee welcome! You don't say whether or not you are on the Cloud with your system or not. If you are on the Cloud, you should be able to accomplish this with Automation. I'm no expert on it, but in your project with the child (linked) issue, you should be able to see when the status changes and then update the Parent Status accordingly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Ishan Banerjee From your example JQL query, it seems that you are already using ScriptRunner for Jira add-on (since you have used the keyword "issueFunction" and the JQL function "hasLinks()", which are normally used in ScriptRunner).
Based on my knowledge of ScriptRunner, I think in your case, "linkedIssuesOf()" function will suit your needs since this function supports a JQL subquery and a link description as parameters. You can read more about the usage of this function in ScriptRunner add-on's documentation and use it to see it it solves your problem. It would be roughly like this:
project = "blocked-project-name" AND issueFunction in linkedIssuesOf("project = 'blocking-project-name' and status not in (Closed, Resolved)", "blocks") order by created DESC
Hope this helps!
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.