Forums

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

Validate Linked Issue When Changing a Field

Neta Knyazhansky Caspy
Contributor
December 3, 2023

Hello,

I'd like to create a validator for a certain field, if it changes to a specific value, a linked issue from type "Is tested by" must be set.

I know that validators are only for transitions, it can also be a kind of automation, I'm open to ideas.

I have ScriptRunner & JMWE.

Thanks

1 answer

1 accepted

1 vote
Answer accepted
David Fischer
Community Champion
December 3, 2023

Hi @Neta Knyazhansky Caspy 

I assume you want this "validation" to take place even if the user changes the value of the field on the Issue View screen, instead of just on a Create or transition screen?

If so, as you mentioned, Jira doesn't support validation on the issue view screen. The only workaround would be to create a JMWE Event-based action to react to changes to the field, and if the field has the specific value, and an issue is not linked through the "is tested by" link direction, then display a message using the "Display message to user" post-function and, possibly, revert the value of the field to the previous value.

Neta Knyazhansky Caspy
Contributor
December 3, 2023

TIL, I didn't even know Event-based action was an option, but after some digging around I found a way to get it just the way I wanted to.

Thank you!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events