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

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 Leaders.
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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events