How to create a field and make it mandatory only when assigning an issue to a specific step

sai-leung_lee November 8, 2024

So we are able to create issues in JIRA and move them from one state to another (eg from  "In Progress" to Awaiting Test to "In Test" etc...).

As the issue progresses from one state to another you must add certain bits of information, eg Due Date? etc...  All good.

My problem is that I've taken over this system and have been asked to add a field and make it mandatory only when an issue moves to "Awaiting Test".  Call this field "Impact".  The team has been told that when their issues are being assigned to "Awaiting Testing" that "Impact" is mandatory and they must complete this field, and supply further information...

This field "Impact" can apply to any project and any issue type that has the step "Awaiting Test".

So what have I done so far to try and resolve this problem?

Under a particular project, I've clicked Project Settings, then selected Fields, then Actions > Edit Fields, clicked on the field configuration and for "Impact" assigned it to a screen:

image.png

image.png

This works when I move an issue to "Awaiting Test":

image.png

and "Impact" appears and is mandatory as expected

image.png

However, the problem is that when other issues are created, JIRA is now saying that "Impact" is mandatory, but "Impact" doesn't appear anywhere on the form???!!!:

image.png

and thus I have to go back to the Issues View Field Configuration screen and mark the field as Optional (and not Required).

 

 

 

image.png

2 answers

1 accepted

0 votes
Answer accepted
Karan Sachdev
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 8, 2024

Hello,

 

You have made the field mandatory by navigating to the field configuration, which is one of the correct ways to make the field mandatory, but is not applicable for your use case. Because your field configuration is shared with 82 projects, this change will apply to all those projects.

Since you want to make the Impact field mandatory when the issue moves to the Awaiting Test status, the correct method would be to use the workflow validators. This way, you can limit your change to the desired project and issue type, and enforce it at the required status transition only.

The workflow configuration steps from the below article should help:

Making a field mandatory

You can test this approach on a test project and workflow, then implement the changes in your project. Also, you can revert the changes made to the field configuration.

 

Thanks,

Karan

sai-leung_lee November 14, 2024

Thank you Karan, your answer ties into this article which provided the solution: 

https://community.atlassian.com/t5/Jira-Service-Management/Required-field-on-one-screen-only/qaq-p/859728

 

Like Karan Sachdev likes this
0 votes
Klaudia Schön_Deviniti_
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.
November 8, 2024

Hi @sai-leung_lee

From the configuration perspective, the field, even if not added to the screen, must be filled if it's globally marked as required and assigned to the specific field configuration.

For this purpose, a better option is using validators or 3rd party apps. From my side, I'd like to encourage you to try a Dynamic Forms for Jira https://marketplace.atlassian.com/apps/1210820/dynamic-forms-for-jira?hosting=cloud&tab=overview which allow you to achieve the use case you have. Thanks to this application, you may define the conditions and decide when exactly the field will be mandatory, or not. 

I strongly encourage you to schedule a free overview with our team using our Calendly: https://calendly.com/deviniti 

Kind regards,
Klaudia from Deviniti

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