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?
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.