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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,551,726
Community Members
 
Community Events
184
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

0 votes
Andrew Laden
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.
Nov 20, 2019 • edited

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. 

0 votes
Andrew Laden
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.
Nov 20, 2019 • edited

{Comment deleted for being incorrect.}

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events