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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,406
Community Members
 
Community Events
176
Community Groups

Schedule ScriptRunner to load a web link URL

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

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

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

Atlassian Community Events