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

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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,826 views 12 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot