Hi @Amir ,
Welcome to Atlassian community.
I am really bad at rest API's . But the script runner documenation has some examples for you.
I hope the above info helps. Have a good day!
Thanks,
Srinath T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you but it didn't help.
I just want a simple code to load a web link URL to put in jobs section to run it every day...
Unfortunately there isn't a good documentation to write script in ScriptRunner...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
import groovyx.net.http.HTTPBuilder
import static groovyx.net.http.ContentType.*
import static groovyx.net.http.Method.*
def http = new HTTPBuilder("https://google.com").request(POST){}
def data = new URL("https://google.com").getText()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.