Forums

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

createIssue not able to create

vishal May 14, 2019

string project = "JD";
string issue_parent_Key = "Hey";
string issue_priority;//Possible values: "Major", "Critical" etc.
string issue_description;
string[] issue_components;
string issue_security_level;
string[] custom_fields_mapping;

issue_priority = "Medium";
issue_description = "Description of the issue";
issue_components = "My Data"; //an array containing all the components of the current project
issue_security_level = "Administrator";
custom_fields_mapping = "";
string k = createIssue(
project,
issue_parent_Key,
"Sub-task",
"Summary of the sub task" ,
issue_priority,
issue_description,
issue_components,
currentDate() + "30d",
issue_security_level,
custom_fields_mapping
);
//print ("On the project " + project + ", issue " + k + "is created.");
linkIssue(k, issue_parent_Key, "Relates");

 

 

1 answer

1 accepted

0 votes
Answer accepted
Alexey Matveev
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.
May 15, 2019

Hello,

Is it Jira Cloud or Server? What error do you have?

vishal May 15, 2019

Its Cloud and the error unable to create Issue

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.
May 15, 2019

Could you give us the full error you are seeing?  "unable to create issue" could be all sorts of things.

Alexey Matveev
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.
May 15, 2019

string issue_parent_Key = "Hey";

It should be a key like Hey-1

And this issue should exist.

Go to SIL manager and see the logs with the Load Logs button for errors

vishal May 15, 2019

Hey Alexey,

 

The issue was not existing it was deleted accidently.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events