How to change assignee via JRJC?

Wenbo Chao August 25, 2013

I could use REST API to change the assignee.

https://jiraserver:8443/rest/api/2/issue/AUTO-1281

put method

{

"fields": {

"assignee":{"name":"xxx"}

}

}

But in JRJC, get null when using issue.getFieldByName("assignee").

2 answers

1 accepted

0 votes
Answer accepted
Wenbo Chao August 26, 2013

Issue resolved, should use HttpsUrlConnection to send JSON request NOT Http.

0 votes
Chaithra N
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.
August 25, 2013

To Get Assignee, you will have to use issue.getAssignee() or issue.getAssigneeUser;

Wenbo Chao August 26, 2013

I want to change assignee via JRJC, not just issue.getAssignee.

Suggest an answer

Log in or Sign up to answer