I want to write a code to just load a web link URL and set it on jobs (in ScriptRunner) to load it on specific times.
Could anyone help me?
Thanks
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.