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.
Blocking not actually affecting linked issue behavior makes it a completely useless feature.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.