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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

64 views 0 5
Read article

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