Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,170
Community Members
 
Community Events
165
Community Groups

enable to create an issue

I have a very simple code trying to create a test issue, i'm sure of the project key and the issue type. 

i'm using jira 7.1.4 and power scripts 4.0.6

 

My code : runnerLog("before ");
string DestinatairesG = createIssue("KYC","","6","test creation", "", "myKYC" , {}, "", "", "", "");

runnerLog("after :"+DestinatairesG);

runnerLog("display :"+%DestinatairesG%.summary);

my error:

Exception while executing SIL program >>testsil<<: [SIL Error on line: 7, column: 23] [SIL Error on line: 7, column: 39] Field >><< cannot be matched against a standard field, a custom field or an alias. What is it?

2 answers

Why do you have "6" in the third field of the createIssue call. Usually that would be the name of the issue type. Is your issue type named "6"?

I think your issue isn't getting created. The createIssue call will still run but return nothing if the issue couldn't be created, You may see something in your logs like 

2019-11-20 15:53:42,658 pool-71-thread-3 ERROR ALaden 633x9281x1 btw0k 172.18.70.34,172.19.52.39 /rest/keplerrominfo/refapp/latest/async-script/checkScript [c.k.j.c.i.routines.issue.CreateIssueRoutine] Cannot save new issue; error was com.keplerrominfo.jira.commons.hostapp.JiraOperationException: Cannot save new issue; error was com.keplerrominfo.jira.commons.hostapp.JiraOperationException: No such issueType >>6<< for project >>KYC<<

 

So you should check the value of the returned string and make sure it is not empty before you try to de-reference it. 

{Comment deleted for being incorrect.}

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

159 views 1 3
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