Hey Community,
Jira is throwing error saying mandatory fields are required when trying to create an issue.
I have checked the field configuration but those fields are not marked as required.
There is also no transition rule in the workflow,
Can someone help me understand what's the issue here?
Hi @[deleted] ,
are you sure there is not a Validator on the Create transition?
if you supply a value does the create succeed?
where are you checking to see if the field is mandatory?
I must have spent months looking at exactly the wrong field configuration (in server/company-managed projects) over my career - are you 100% sure you are looking at the right one?
There's a difference between the error message a validator and a field configuration throws on mandatory fields, could you tell us what the error is (just the plain text of the error, don't need screenshots etc)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Field Environment (Dev/QA/Prod) is required. Field Epic Link is required. Field Fix versions is required. Field Phase is required. Field System/s is required. Field Target Sprint (roadmap) is required.
This is the error I get and when I look at them in the field scheme none of them is "required" . Also I am doing this in Jira cloud maybe that might have something to do with it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1) Are you sure there is not a Validator on the Create transition? - there is no Validator on the Create transition in the workflow. I am sure nobody in my org is using scrip runner.
2) if you supply a value does the create succeed? - Yes it does.
3) where are you checking to see if the field is mandatory - I am checking this in Jira Settings-> Field Configuration -> View field configuration -> Fields (Name, Screens, Action). In action there is a button if field's required or not and its not.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Script-runner is not the only thing that gives you validators, there's loads of things that do it, including Jira itself. Are you 100% sure there are no validators from any app or Jira on the create transition?
Are you sure you are looking at the right field configuration?
Go back to the project, and note the issue type you are trying to create. Go to project admin -> Field configuration scheme and go into that to find the one mapped to this issue type, then descend into it to find the optional flags (the option to change is usually named as what you're going to change it to - so currently optional fields display "mandatory", and currently mandatory fields show "optional")
Oh, and check what workflow the issue type is using in the same way.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You guys were right it was the workflow. There was a validator and I was getting confused in 2 different ones. So I am all set.
Thanks for your help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Good to hear. I was pretty sure that was where it was.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes you were right. I just got confused with so many workflows and schemes. Need to do a better job trying to admin this maze.
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.