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

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,551,881
Community Members
 
Community Events
184
Community Groups

Delete link of an issue if the linked "blocked by" issues are in the status done with automation

We have several issues in our jira project which have dependencies and I want to automate the behavior of the dependencies under certain conditions. 

For example we have a scenario like this:

1. PUT-1 is blocked by PUT-48 (Open)

2. PUT-2 is blocked by PUT-105 (Open), PUT-105 (Done), PUT-8 (Done)

3. PUT-34 is blocked by PUT-34 (Done), PUT-16 (Done)

... and so on ...

My goal is to check on a daily bases (scheduled) if the blocked by issues (1 to n) are all Done. In that case delete the link to all of them.

So how would I do this with jira automation because I guess that I have to use the lookup action with a branch.

Would be great to hear from you.

Thanks

Thies

 

1 answer

1 accepted

0 votes
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 12, 2023

Hello @Thies Uhlenbruch 

You could use a Schedule trigger to run the rule. 

However you need to provide or get the list of blocked issues that you will want to check.

With a Schedule trigger you can include a JQL to select the issues you want to operate on. 

Unfortunately Jira doesn't have a native "hasLinksOfLinkType" function. Because of that there is not a dynamic method to get just the issues that have "is blocked by" links to other issues. You will have to either provide an explicit list of issues to check, or use a more generic JQL to retrieve issues to check (i.e. project=X and issueType in (A, B, C)

The next component in the rule would be actually be a Condition for Related Issues rather than a Lookup Action.

Screen Shot 2023-04-12 at 11.23.02 AM.png

This condition will check that all issues linked to the primary issue (retrieved by the schedule trigger) with the "is blocked by" link are in a Done status. If they are, then the next step will execute. If they are not, or if there are no linked issues with that link type, then the next step will not execute and the rule will iterate to the next issue in the list retrieved by the schedule trigger.

The next step would be a Delete Links action to delete the l"is blocked by" issue links.

Screen Shot 2023-04-12 at 11.26.41 AM.png

Kelly Arrey
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.
Apr 13, 2023

Hi @Trudy Claspill would `issueLinkType = "is blocked by"` work in this context?

Here's the doc: https://support.atlassian.com/jira-software-cloud/docs/advanced-search-reference-jql-fields/#Issue-link-type

Like Trudy Claspill likes this
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 13, 2023

You're right @Kelly Arrey ! I thought there was something like that but was looking in the functions reference instead of the fields reference. Good catch! That would indeed work in the schedule trigger for selecting the issues to run the rule against.

Kelly Arrey
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.
Apr 13, 2023

I know what you mean @Trudy Claspill, I wish all that documentation was on a single page so you could search it once instead of having to search each page individually.

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 19, 2023

Hello @Thies Uhlenbruch 

Did the answers we provided help you resolve your issue? If so, please consider marking the Answer as Accepted, to help other users find posts with validated answers/solutions.

Hey @Trudy Claspill ,

that works very well. Thank you for your support :-)

 

Cheers

Thies

Like Trudy Claspill likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events