Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Your request could not be created. Please check the fields have been correctly filled in Edited

I am having trouble finding out the cause of this error on a particular project. This error is preventing customers from submitting tickets on two specific request types in a single project. There was no change in the request type, custom field, or workflow. I have a hidden custom field but it is not required and has a default value set. Any ideas?

1 answer

1 accepted

1 vote
Answer accepted
Dave Liao Community Leader Jul 31, 2020

@Midnite8 -

  1. Are you able to submit requests, as an admin?
  2. Check your workflow that there's no validator present?
  3. Check the permissions on the project to ensure users can create issues? 
  1. I cannot submit requests as an admin either, I receive this error: Error2.png
  2. There is 1 validator: Only users with Create Issues permission can execute this transition.
  3. Create issues permissions is allowed for Administrator and Service Desk Team, which I am part of both. Users in the project have Service Desk Team roles.

@Dave Liao, I have now discovered all request types are broken now, we receive the error on all of them.

Dave Liao Community Leader Jul 31, 2020

@Midnite8 - Can you create issues for that project directly (via Jira's header)?

From project settings, re-check your request types. Check each hidden field, and click "Edit value" to check its default. Attempt to re-save each.

@Dave Liao, I cannot create issues for the project directly either.

I checked all custom fields and clicked Update on each one and also checked the the one hidden field on each request to ensure it was not required and clicked Update.

Dave Liao Community Leader Jul 31, 2020

@Midnite8 - navigate to an already-existing issue in that project.

Tap G-G twice on your keyboard, then search for "Permission Helper".

For user, put your name.

For permission, type "Create Issues".

What do you see?

@Dave Liao I do have the permissions and I checked another member that has the Service Desk Team role and they look good as well...

Error3.jpg

Dave Liao Community Leader Jul 31, 2020

@Midnite8 - what happened when you tried creating an issue directly within Jira?

  • See any error messages?
  • If you're using Chrome (or Edge Chromium), pull up web tools (F12) and check the Console. See any errors there?

Usual disclaimers apply - clear your cache, log out, log back in, try in an incognito window, etc.

Used Chrome and tried to create directly within Jira and get this:

Error4.jpg

Using F12 tools, console shows 2 errors that were the same:

ChromeError1.jpg

When I clicked on it, brought me to a page:

ChromeError2.jpg

When using the customer portal, I see the same error.

Dave Liao Community Leader Jul 31, 2020

@Midnite8 -

  • This is a Jira Server instance, not Jira Cloud, right? (Your Jira URL doesn't end with atlassian.net, yeah?)
  • Has anything changed in your network lately? This creation fails from an incognito window too?

@Dave Liao,

Correct, Jira Server instance. We upgraded from 8.7.1 to 8.9.1 last Friday, but didn't have any reports until today for this specific project. No issues with creating issues on any other project.

When you say, changes in network, can you clarify? And correct, fails in incognito as well.

Like Dave Liao likes this
Dave Liao Community Leader Jul 31, 2020

@Midnite8 - any changes in your network setup or architecture, like an SSL certificate. But never mind that question since you confirmed that other Jira projects are operating without issue.

Can you temporarily create a new request type in the affected project, with just one field (like Summary), and see if that works?

@Dave Liao 

New request type with just one field did not work either.

Dave Liao Community Leader Jul 31, 2020

@Midnite8 - have access to your server logs? If not, find someone who does, and share the exact error(s) you see there.

Ok, I opened the log and tried to create a ticket and this is the error that came up:

LogError.jpg

Looks like our SIL script, that auto sets the user location from the value in AD is preventing the ticket from creating...

Like Dave Liao likes this

@Midnite8 - ah, Power Scripts!

Do those custom fields exist in the affected project? Do they exist on the request form(s) and the screens for the issue type(s) used in those request form(s)?

@Dave Liao 

Here is the full script:

//customfield_11430 = ldapUserAttr("physicalDeliveryOfficeName", "(sAMAccountName=" + currentUsername() + ")");
//customfield_14634 = currentUsername();
if (isNull(customfield_11430)) {
customfield_11430 = ldapUserAttr("physicalDeliveryOfficeName", "(sAMAccountName=" + currentUsername() + ")", "ORG");
customfield_16135 = ldapUserAttr("company", "(sAMAccountName=" + currentUsername() + ")", "ORG");
customfield_16731 = "POC";
}
if (isNull(customfield_11430)) {
customfield_11430 = ldapUserAttr("physicalDeliveryOfficeName", "(sAMAccountName=" + currentUsername() + ")", "ECB");
customfield_16135 = ldapUserAttr("company", "(sAMAccountName=" + currentUsername() + ")", "ECB");
customfield_16731 = "ECB";
}

Custom field ID 16135 is referring to a custom field called "AD-Company".

Like Dave Liao likes this

That custom field is not even in scope of this project or screen.

Dave Liao Community Leader Jul 31, 2020

@Midnite8 - like I mentioned earlier (in my now-edited previous answer), ensure the referenced custom fields all exist so Power Scripts doesn't get confused.

  1. check the request form - what issue type is mapped to it?
  2. check the issue type screens, do the custom fields exist on them?
Dave Liao Community Leader Jul 31, 2020

@Midnite8 - you can update the script to run only when the custom fields are present. Use this routine: https://confluence.cprime.io/display/SIL/isCustomFieldInContext

This Community thread also references the same problem you're having FYI: https://community.atlassian.com/t5/Marketplace-Apps-Integrations/SIL-script-custom-field-not-in-context/qaq-p/268511

Hope this helps!

@Dave Liao 

I'm wondering where I would use that in my current script though.

Do I only specify the specific project to check if the custom field is in context or all projects?

Dave Liao Community Leader Jul 31, 2020

@Midnite8 - actually, before making modifications, you mentioned "the custom field is not in scope of this project or screen". Can you add any missing custom fields to the screens used for that project?

I just added the custom field that's referenced in the error to the Create Issue screen but it still has the same error.

Like Dave Liao likes this
Dave Liao Community Leader Jul 31, 2020

@Midnite8 - can you re-confirm? In issue SICHD-436 that you referenced, does the missing custom field now exist in the Create screen for that issue type?

Sorry, I added the custom field to the Create screen but it was only in context of two projects and not Global. I added the project that we're referring to and was able to create a ticket... This custom field shows what company the reporter of the ticket is from, so it doesn't really hurt for it to be shown. If that is a quicker fix than editing the script than I am OK with it..

Like Dave Liao likes this
Dave Liao Community Leader Jul 31, 2020

@Midnite8 - yep, only users creating issues internally within Jira will notice this, and not via your service desk portal. ;-p

Glad that adding the missing custom fields to the screen resolved your issue!

Feel free to accept my answer (I'd love the recognition!), and TGIF. 🎉

Thanks @Dave Liao you were crazy fast in replying and for sure helped me solve this issue. I created a support ticket with Atlassian and they still have not replied after 4 hours!

Like Dave Liao likes this
Dave Liao Community Leader Jul 31, 2020

@Midnite8 - you're lucky I ended my work day "early"!

Finding out that Power Scripts (it's an add-on I'm a fan of) was part of your issue was also a pleasant surprise.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.9.1
TAGS
Community showcase
Published in Jira Service Management

Why upgrade to Jira Service Management Premium?

We often have questions from folks using Jira Service Management about the benefits to using Premium. Check out this video to learn how you can unlock even more value in our Premium plan.  &nb...

148 views 0 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you