Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Unable to set assignee through JIRA REST API

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

 

2 answers

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.
Dec 14, 2021

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

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