Forums

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

jira issue should not be allowed to DONE till commit is done

SandeepSingh R
Contributor
September 21, 2023

hi Folks,

I need to run Automation rules where Jira issues should not be closed or DONE till commit is done and commit id is mentioned by the user

2 answers

2 votes
Mohammed Aamer Khan
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.
September 22, 2023

Hi @SandeepSingh R

As mentioned by @Hauke Bruno Wollentin You can use Workflow Validator/Condition to fulfil this requirement. You can add any of it on the required transition and add a transition screen in which you can add your "Commit" field which can be filled by users manually while transitioning issue.

Hope this resolves your query!

Hauke Bruno Wollentin
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.
September 22, 2023

Maaan, I red "comment" instead of "commit". My bad 😅

0 votes
Hauke Bruno Wollentin
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.
September 22, 2023

The first one can be achieved using the Field Required Validator in the workflows transition.

Go to Edit Mode of your workflow -> Diagram view -> click on the desired transition -> click on Validators on the right side -> Add a Field Required Validator -> choose Comment as the required field.

I'm not sure if this is still present, but AFAIR without a plugin like scriptrunner you can't check if the comment is just whitespaces or so.

I'm also not sure if I understand the "commit id is mentioned by the user" part correctly.

Should a user refer to another comment in the closing comment?

SandeepSingh R
Contributor
September 22, 2023

Go to Edit Mode of your workflow -> Diagram view -> click on the desired transition -> click on Validators on the right side -> Add a Field Required Validator -> choose Comment as the required field.

 

I am not getting this option

SandeepSingh R
Contributor
October 1, 2023

hi 

I have made this rule but not working  as expectedcommit rule.PNGcommit.PNG

Suggest an answer

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

Atlassian Community Events