Forums

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

Add validation/condition on Approval Status

Daniel Alonso
Contributor
August 2, 2022

Hi,

I want to implement a validation or a condition on a Status that has the Approval feature.

Why? This is my scenario.

Approvers need to review the request and 'singed' adding a comment before they Approve the request.

I implemented the condition and validation using script runner but it is always passed by and doesn't perform correctly.

 

Any suggestion to prevent this?

2 answers

0 votes
Bharathi
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 5, 2022

Hi @Daniel Alonso,

As suggested by @padraik, the best bet would be to create a custom user picker field as Approver and select the appropriate person on it, as needed. For their approval to process, add in a validator to check if a custom field like "review comment" is filed in by marking it as mandatory.

Hope this helps!

Thanks!

0 votes
padraik
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 2, 2022

You would need to show your code for help on why that might not be working :)

But my suggestion in general would be to create a custom field (user picker) for this called "Approver" and the user needs to be added to that field as part of approving.

Then you can put a "field required validator" into your post function for the transition out of this status that requires the Approver field to have a value.

Annotation 2022-05-10 143031.png

Daniel Alonso
Contributor
August 8, 2022

I forgot to mention that this is for Jira Service Management, I already found that right now it's not possible, I will update my findings later.

Like • Bharathi likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, likes for trees, atlassian community, social impact, tree planting campaign, community kudos, atlassian giving, environmental impact, sustainability, likes for good, atlassian social responsibility, community challenge

Make every click count—help us plant 50,000 trees! 🌳

Want to make your everyday Community actions directly contribute to reforestation? The Atlassian Community can achieve this goal by liking a post, attending an ACE, sending your peers kudos, and so much more!

Help us plant more trees
AUG Leaders

Atlassian Community Events