Atlassian SDK - Create Jira Issue with Assignee

Yehuda Pfeifer
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!
August 23, 2021

I am using the C# atlassian sdk (version 12.4).   I am able to create a jira issue with the below code, but the assignee field does not seem to get populated.  I am using the the assignee account id

var jira = Jira.CreateRestClient(_settings.JiraServer, _settings.AtlassianUser, _settings.AtlassianToken);

var myself = await jira.Users.GetMyselfAsync();

var newIssue = jira.CreateIssue(_settings.JiraProject);
newIssue.Type = _settings.JiraIssueType;
newIssue.Summary = "This is a summary";
newIssue.Assignee = myself.AccountId;

await newIssue.SaveChangesAsync();

 

The issue gets created but it is unassigned.  When I create the issue via postman, using the account id (returned from myself) - It works properly.  I think it is a bug in the sdk

Thanks

 

1 answer

0 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 25, 2021

Hi Yehuda,

While Atlassian does create some SDKs for developers, this particular one you are referring to appears to be created/supported by an individual outside Atlassian.  I believe this project is being tracked over in https://bitbucket.org/farmas/atlassian.net-sdk/src/master/

And the link of

https://bitbucket.org/farmas/atlassian.net-sdk/issues?status=new&status=open

Appears to show the listed issues with that package.  I have not found a specific report of this not working as expected.  Perhaps it would help to reach out on that tracker here to see if perhaps this is a bug with that SDK.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events