I have an "initiative" issue type. It has a "blocker" sub-task type. The blocker has two statuses open>resolved.
I need help trying to find a way that if an initiative has any blockers that are in the open state then the "blocked" checkbox is checked. If there are no blockers or all linked blockers are resolved, then the box is unchecked.
Is this possible? Would someone be able to show me how?
Scott,
You would need to use a third party plugin to update your custom field (checkbox). I would recommend one of the following three JSU, ScriptRunner or Automation for JIRA. Each have different ways of accomplishing what you are asking to do. The least complex way to accomplish this is to do it using a workflow transition to fire off the action.
Okay we have scriptrunner. Any idea what that script world look like?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You will need to use a post function. I would use https://scriptrunner.adaptavist.com/latest/jira/builtin-scripts.html#_fires_an_event_when_condition_is_true
You can then update the parent task when the condition is true.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
the issue i see with this is that its transition based. so when i resove one blocker it will uncheck the blocked field. But i need tit to look for any and all blocker tickets and only uncheck when everything has been resolved.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes that is why you write it to only fire when the condition is true.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok its clear i dont know a thing about scripting. I have no idea what im looking for. What would that script look like? :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.