Forums

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

no new task is created using Jira.SDK for c#

Saraantuaya L
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 22, 2022

Hi All! 

learning to work with Jira.SDK for c#

No new task created using Jira.SDK for c#

this code:

//Add a new issue to a project

Jira.SDK.Jira jira = new Jira.SDK.Jira();
jira.Connect("https://myHost", "admin", "password");
Jira.SDK.Domain.Project proj = jira.GetProject("myProject");
Issue newIssue = proj.CreateIssue(new IssueFields()
{
Summary = "Summary of the new issue",

IssueType = new IssueType(0, "Type"),
CustomFields = new Dictionary<string, CustomField>() {
{ "customfield_11000", new CustomField(11000, "Value") }
}
});

error:

Cannot build uri when url segment parameter 'issueKey' value is null.

I can't find how to set or get this parameter :(

please help!

 

0 answers

Suggest an answer

Log in or Sign up to answer