script runner post function

Jiannan Tang January 30, 2013

Hi:

I want to add an post function to change other system.

Like, if I change the issue status to resolved then the post function will auto post the issue key using api http://example.com/issues.

How to use rest api in script runner?

1 answer

1 accepted

0 votes
Answer accepted
Renjith Pillai
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.
February 2, 2013

REST is nothing but plain HTTP request with a json request content. Read similar post at https://answers.atlassian.com/questions/112323/fisheye-rest-api-and-making-post-requests-via-groovy-wslite (see Jamie's answer there)

Jiannan Tang February 3, 2013

Thanks, it's an good example!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events