Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

When resolving an issue with Resolution of Fixed only allow transition if issue has a GIT commit

Doreen Miller November 28, 2018

We have a "Resolved" workflow transition.  The transition has a screen with the Resolution field and a few other fields.  The transition currently has the following condition and validator.

Condition:

Only users with Resolve Issues permission can execute this transition.

Validator:

Fields Required (JSU)

  • Required fields:
    • Resolution
  • Error message (optional): Resolution must be set.

 

I have a request that I am not sure how to handle.  When the user enters the Resolution they have many values to select from.  Some of the values are Won't Fix, Duplicate, Cannot Reproduce, Fixed, and Fixed-No Test.

We want to require the issue to have an associated GIT commit if either Fixed or Fixed-No Test is selected for the Resolution.  Essentially if the developer says the issue is fixed there must be a GIT commit linked to the issue.

I see that I can add a condition of "This transition will only execute if code has been committed against this issue", but this does not solve my problem because the user needs to be able to perform the transition if they are going to select a different resolution.  Until they enter the value for Resolution on the transition screen the validation cannot occur.  So I need to do it as a Validator but I do not see a way to say "the transition requires a linked GIT commit when Resolution = Fixed or Fixed-No Test".

Is there a way to do this in a transition validator?

Thanks

0 answers

Suggest an answer

Log in or Sign up to answer