Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Mandatory fields not letting me to create an issue

Deleted user April 28, 2022

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?

1 answer

1 accepted

1 vote
Answer accepted
Jack Brickey
Community Champion
April 28, 2022

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?

Nic Brough -Adaptavist-
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.
April 28, 2022

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)

Like Jack Brickey likes this
Deleted user April 29, 2022
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.

Deleted user April 29, 2022

@Jack Brickey , 

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.

Nic Brough -Adaptavist-
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.
April 29, 2022

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.

Deleted user May 2, 2022

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.

Like Jack Brickey likes this
Jack Brickey
Community Champion
May 2, 2022

Good to hear. I was pretty sure that was where it was.

Like Deleted user likes this
Deleted user May 2, 2022

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events