Making a field Mandatory before closing the Issue

Ankush Goel September 21, 2020

I have created a custom field "X" for the issue type bug which is not mandatory , but when person close the bug then we have to make that field mandatory( means without filing that filed , person cannot close the bug ) , how is thing possible in JIRA ?

4 answers

0 votes
Somesh Sahoo May 9, 2024

https://youtu.be/W3vhZJkJ52A

 

Please see this video for solution.

0 votes
Ankush Goel September 21, 2020

After creating the validator also its not behaving correctly.

 

The transition requires the following criteria to be valid

Field "X" should be modified during the transition.

Error message: Mandatory Field

 

But when i go and create the issue and then try to close it. It is not giving me any error and closed directly.,

 

PS: After creating validator is it required to publish  the workflow first ??

You are editing a draft workflow. Publish Draft Discard Draft View original   ( This message is coming at top of the screen

DPKJ
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 21, 2020

Yes it is required to publish workflow for any changes.

Also, change each change one state to another is different transition (unless explicitly shared) and will require you to configure validator for each step.

Ankush Goel September 21, 2020

If we publish like when items will be moved to close, from any state , then only it will apply ?

 

will that work.

 

Also there isnt any option available to make the field mandatory, but the available option is to change the field when status will be moved to closed

Like Daniel Cano likes this
DPKJ
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 21, 2020

Yes, you need to apply.

0 votes
DPKJ
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 21, 2020

@Ankush Goel  This is very much possible in Jira.

You will need to create Validator on transition to accomplish this.

You can learn about validators here - https://confluence.atlassian.com/adminjiracloud/using-validators-with-custom-fields-776636707.html

0 votes
Liam Green
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 21, 2020

Hi @Ankush Goel 

If you use the Field Required Validator within the workflow, transition properties, then you will be able to make the field mandatory.

Regards, Liam

Suggest an answer

Log in or Sign up to answer