Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Schedule ScriptRunner to load a web link URL

Amir July 20, 2022

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

2 answers

1 vote
Srinatha T
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 22, 2022

@Amir I would recommend you to write to script runner support here.

They might have this info handy.  Sorry i am no expert on scripts and couldnt be of much help. 

Have a good day!

Thanks,

Srinath T

1 vote
Srinatha T
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 20, 2022

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 

Amir July 22, 2022

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...

Amir July 24, 2022
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){}
OR
def data = new URL("https://google.com").getText()

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events