The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Unable to set assignee through JIRA REST API

Shivkumar.Amuda
December 14, 2021

Unable to set assignee through JIRA REST API .NET SDK.

 

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Madhura Lodam
September 26, 2023

Not able to set assignee using POST /issue REST call.
sample input:

{
    
    "fields": {
        "project": {
            "id""102XX"
        },
        "summary""Creating this issue as part of JIRA REST Testing",
        "issuetype": {
            "id""10003"
        },
        "assignee": {
            "name""emailOfAssignee"
        },
        
        
        "timetracking": {
            "originalEstimate""10",
            "remainingEstimate""5"
        },
        
        "description""testing Jira Rest endpoints",
        "duedate""2023-09-27"
       
        
    }


The issue gets created unassigned.
Can you please suggest how can I set the assignee? 
0 votes
Ravi Sagar _Sparxsys_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
December 14, 2021

What is the error? What is in your JSON body for the REST call?

Shivkumar.Amuda
December 16, 2021

Im creating an issue with Atlassian.JIRA SDK.

while assigning the assign with accountID the jira ticket assignee field is not getting updated to the issue. please find the below sample code.

Eg : Sample code:

Issue issue = jira.Issues.GetIssueAsync("TID").Result;
issue .Assignee = "accountid-XXXXX" ;
issue .AssignAsync( "accountid-XXXXX");
Issue issue1 = issue .SaveChangesAsync().Result;

The above code is NOT updating the issue assignee.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events