Hi,
Im trying
HttpPost request =
new HttpPost("http://10.245.18.148:8080/rest/api/2/issue/"+issueNumber+"");
{\"fields\": {\"Record URL\" :[\"/http://ddcdev01.hic.hicnet:81/pint2V7/nbcsr/nbcsrEnterAdverseOutcomes.do?forwardFrom=JIRA&action=advrsFromJIRA&docRefID=]}}" );
getting a following error
HTTP/1.1 405 Method Not Allowed [Server: Apache-Coyote/1.1, X-AREQUESTID: 736x16258x1, X-ASEN: SEN-L5439581, Set-Cookie: JSESSIONID=DEAE16935FF6D6E0F0916634755EFF8E; Path=/; HttpOnly, X-Seraph-LoginReason: OK, Set-Cookie: atlassian.xsrf.token=B153-03FQ-FIU5-C4OD|53999ab7b239a3b9d7af64453ca436a9f06059af|lin; Path=/, X-ASESSIONID: 75tibb, X-AUSERNAME: system, Allow: HEAD,DELETE,GET,OPTIONS,PUT, X-Content-Type-Options: nosniff, Content-Type: text/html;charset=utf-8, Content-Language: en, Content-Length: 1013, Date: Wed, 08 Apr 2015 02:16:14 GMT] org.apache.http.conn.BasicManagedEntity@6f2e6f2e
Make sure you use PUT as your request method.
This other answer should help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.