Forums

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

PowerScripts / SIL : createIssue() without dueDate

A
Contributor
October 23, 2017

cannot find it in the docs... "null" is not a valid keyword in SIL:

I'd like to create an issue using a 
createIssue(projectKey, parentIssueKey, issueType, summary, priority, description, components, due date, estimate, security_level, field_mappings)  
signature, but leave due_date and estimate blank

string newKey = createIssue(
    project,
    "",
    "Bug",
    summary,
    priority,
    description,
    components,
    null, /* dueDate */
    null, /* interval */
    "",
{}
);

re: https://confluence.cprime.io/display/SIL/createIssue
I am aware of a simpler method signature, but it requires setting fields after an issue is created - resulting in at least 2 entries in issue history

possible?

 

1 answer

1 accepted

3 votes
Answer accepted
Justin Evans
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.
October 24, 2017

Hi Andrei - instead of passing null (null), you should be able to pass an empty string ("").

A
Contributor
October 24, 2017

nice... it works.
i could swear i tried this and got errors before...

smth like:

Expected parameter list to match any of [[STRING, STRING, STRING, STRING], [STRING, STRING, STRING, STRING, STRING, STRING, STRING[], DATE, INTERVAL, STRING, STRING[]]] 
but we got ... parameters

 thank you!

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events