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?
@Jh -
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Dave Liao, I have now discovered all request types are broken now, we receive the error on all of them.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Jh - 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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Jh - 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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Jh - what happened when you tried creating an issue directly within Jira?
Usual disclaimers apply - clear your cache, log out, log back in, try in an incognito window, etc.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Used Chrome and tried to create directly within Jira and get this:
Using F12 tools, console shows 2 errors that were the same:
When I clicked on it, brought me to a page:
When using the customer portal, I see the same error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Jh -
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Jh - 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?
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.
@Jh - have access to your server logs? If not, find someone who does, and share the exact error(s) you see there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, I opened the log and tried to create a ticket and this is the error that came up:
Looks like our SIL script, that auto sets the user location from the value in AD is preventing the ticket from creating...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Jh - 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)?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Jh - like I mentioned earlier (in my now-edited previous answer), ensure the referenced custom fields all exist so Power Scripts doesn't get confused.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Jh - 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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Jh - 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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Jh - 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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Jh - 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. 🎉
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Jh - 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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've found another scenario where this problem can happen.
When you use the Checklist custom field and you forgot to add both the Checklist field and the Checklist proxy field.
In the official doc for Checklist at the chapter Setting Up a Customer Portal custom field, when it is specified to add the field to the customer portal, at step 6 we can read:
Select both Checklist custom field and Checklist Proxy for Customer Portal custom field, then click Apply.
But only the Proxy field was added to the Request configuration.
Not having both fields was producing the error you have reported or a similar one like "Your request could not be created. Please check the fields have been correctly filled in"
Hope this helps someone else.
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.