Hey! how to make a field mandatory in the resolve issue screen? (not in create /view/edit ).

k-p May 9, 2023

i want to make a field "x" mandatory in the resolve screen. i dont want to use field validator in workflow. is there any other workaround to do that?

1 answer

1 accepted

0 votes
Answer accepted
Florian Bonniec
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 9, 2023

Hi @k-p 

You will need to use a validator in the WF, if you want to set a customfield required it will require an app such as Jira Suite Utilities or Scriptrunner or another one available on the marketplace.

Using scriptrunner you can use behaviour to set field require during a transition but it only set it required when the user is using JIRA UI not REST API for instance.

Regards

k-p May 9, 2023

Thanks for response @Florian Bonniec . cant i do without it?

problem is - whenever i want to make  my field "required" in a specific screen (resolve screen) then its becoming required in create screen also.

k-p May 9, 2023

.

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.
May 9, 2023

Workflows are based on transitions - you're setting a mandatory field for a specific transition and that transition only.

If you're seeing a mandatory field on Create, then it has nothing to do with your resolve screen, that's something else you're doing.

As a hint - resolution is always mandatory wherever you add it. So if that's your field, don't add it to project screens, only add it to the transition screen (must be a different screen than the one you use for create/edit/view). I think you might not even need a validator for it in that case.

Florian Bonniec
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 9, 2023

@k-p , you can use behaviour included in Scriptrunner to do that but it will only apply via the UI not REST API.

I do not see any other way to do it.

Regards

k-p May 9, 2023

i am making a field required (named "complexity") from, project settings > fields > and then making it  required . this field is not addd in the view/edit /create screen . only it added in workflow resolve screen .but

  • always whenever  i create issue it doesn't show up in issue create form but shows pop-up message in jira that "field is required". 
  • or if i create request form portal than it shows that field. and i cant remove that. so is there a way to not show as well as in  request portal form. and how can i make this field required only in wflow resolve screen. -->
  • image.png
Florian Bonniec
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 9, 2023

Yes it's why you need an app, you cannot use Field configuration for that because it apply to the issue at any state of the life cycle of the issue. If you want to do it at some transition you need a validator or a behaviour (using scriptrunner).

Like k-p likes this
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.
May 10, 2023

Ok great so at some point you figured "hey fields > find field > make required", "oh yeah this definitely means the resolve screen and nothing else". I mean, you could just apply common sense or google to first 3 pages to realize that's not how to you make a field mandatory for a transition.

https://letmegooglethat.com/?q=jira+make+field+mandatory+on+transition

 - first link even says in preview what field configuration does

 - second link is the exact kba you're asking about

 - third link is the same post, even though it's tagged as cloud it applies just the same

Like k-p likes this

Suggest an answer

Log in or Sign up to answer