Forums

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

how to create rule in custom field for specific status

rsinha June 12, 2020

how to create rule in custom field for specific status. that when ticket move to that status, then that field is mandatiry to fill.

 

Please help Regards

Rahul

3 answers

3 accepted

0 votes
Answer accepted
Denise_Wuethrich_beecom_products
Contributor
June 14, 2020
0 votes
Answer accepted
Anurag Jalan
Contributor
June 13, 2020

In JIRA, you can make any field either optional or mandatory throughout the lifecycle for a project & issue type (in-built feature).

However, you can make any field mandatory during transition (change of status from one value to another). 

 

JIRA doesn’t have an in-built feature for this. You need a plug-in as suggested above. The simplest ones are JSU, JWME (which I have used) where no coding is required.


All you need to do is add relevant validation for that particular transition in the workflow (there is validation tab in workflow edit transition mode). Here you can specify which field should be mandatory for this particular transition.

 

To make it user-friendly, you can even add a screen for this transition where you specify which all fields to be filled by user when transition happens.

So when a user clicks to change status, a pop-up will come where it will show the fields which needs to be filled for transition to happen. User can either fill the field which will result in successful transition or can click on cancel which will not do anything

0 votes
Answer accepted
Radek Dostál
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.
June 12, 2020

Hi,

 

I think what you're looking for are Workflow Validators:

 # https://confluence.atlassian.com/adminjiraserver/advanced-workflow-configuration-938847443.html

 

I.e. when you're moving to status "Done", then you can add a validator on that transition that will verify whether a field is filled in, and throw an error if the field is empty (and stopping the transition).

 

Out of box I think that there still is not a validator for "fields required" but here're some example plugins you could try setting this up with (if you do not have any such validator available on your instance):

 # https://marketplace.atlassian.com/apps/575829/workflow-enhancer-for-jira?hosting=server&tab=overview (free)

 # https://marketplace.atlassian.com/apps/5048/jsu-automation-suite-for-jira-workflows?hosting=server&tab=overview (paid, but a lot more advanced)

 

Regards,

Radek

Suggest an answer

Log in or Sign up to answer