PowerScripts / SIL : createIssue() without dueDate

A 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

2 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 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