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
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
Hello, I am trying to link Issues so that an Issue can only be closed if the linked Issue is closed. I am using "locked by" in the linked issues field but it allows me to close the issue anyway. Should it be in the DONE or CLOSED state or does it look at the last state of the workflow?
Hi @Harold Alcalde and welcome to the community!
You cannot set validators against links. However, you could use automation to flag the issue (flag field, custom field, label, component) if it has a blocked issue that is not resolved and unflag when blockers are resolved. Then set up a validator against whatever mechanism you've used to flagged it.
What are you doing in attempt to prevent the issue from being closed? Using the "Blocked by" issue link (or any other) does not prevent transitions.
Glad to help - and welcome to the community :)
Could you click the button to accept the answer in case someone needs help with this issue in the future?
If you have scriptrunner, you could write a simple scripted validator for your transition to your done or closed status that checks that there are no blocker links, or makes sure that the blocking issue is resolved before allowing that transition.