How can I use the linked issues validator to require a certain issue type to have at least one issue link of a specific type?
For example, I have a Task issue type and a Bug issue type. I want to prevent the Task issue from being able to transition from Open to In Progress unless it has at least one "is blocked on" issue link.
I've been able to get it to work for the Task issue type but it seems to create a circular dependency where the Bug issue type now requires a link but this is not intended...
You can implement that validation using "Boolean validator with math, date-time or text-string terms" with the following configuration:
Captura de pantalla 2015-10-23 a las 22.08.17.png
Boolean expression used is:
%{00014} = "Task" IMPLIES count(linkedIssues("is blocked by")) > 0
Note that %{00014} is field code for "Issue type"
Thanks Fidel! This worked great. We purchased this plugin for our client. Got another question for you but will create another question.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jamie,
Do Task and Bug issue types share the same workflow?
Do you want to require at least one "is blocked by" issue link in order to allow Tasks to be transitioned from "Open" to "In Progress"? Do you have any condition on statuses and/or issue type of the linked issues (i.e., blocking issue)?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes the Task and Bug issue types are currently sharing the same workflow.
Yes, we want to require at least one "is blocked by" issue link in order to allow Tasks to be transitioned from "Open" to "In Progress".
As for conditions, we only want the requirement on Task and not Bug.
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.