PowerScripts / SIL : createIssue() without dueDate

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

Accepted Answer
2 votes

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

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
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

27,134 views 2 7
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you