Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Website Check Script - if down, create task

Timothy Ryner
Contributor
May 19, 2023

Has anyone ever written a script that touches an external (to Jira) webpage every hour or so, and performs some action in Jira based on the response code?

I manage a bunch of web apps, and would love to get Jira issues sent to me when a site responds with something other than a 200?  Create a new issue in a project with details on the site that failed the status check.

Ideally, I would have a bunch of parent issues for the sites, and if there is a problem with a site, a subtask is created under the site’s parent issue. That way, I could add more sites to the checker over time, and let the script loop through all of the main issues. 

We are running Jira Server v9.7, and the latest Scriptrunner & Automation plugins. 

Anyone have experience touching external sites with scriptrunner? Even though I’m not fluent with groovy, I could probably piece together the rest of the script myself using previous community posts and the Adaptivist Library (and ChatGPT…LOL). 

Thanks all!

2 answers

1 vote
Alexey Matveev
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 Champions.
June 27, 2018

Hello,

First you need to add versions. You must be a Project Administrator to add a version. You can find more info on how to create a version here:

https://confluence.atlassian.com/adminjiraserver/managing-versions-938847201.html

Then you can open Projects -> Your project and there will be the Releases menu with versions.

Evgeniy Buturlia
January 29, 2019

@Alexey Matveev is there any way to customize fields avaliable on screen that appears after pressing the "release" button ? 

Alexey Matveev
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 Champions.
January 29, 2019

Hello,

It is not possible out of the box.

Narendra Kumar
Contributor
November 6, 2020

Hey @omaracrystal  @Roey Shamir  @Alexey Matveev  @Evgeniy Buturlia  is it possible to add anew field on "release" creation screen? 

0 votes
Roey Shamir
December 24, 2019

Hi, you are more than welcome to try my plugin - Version Manager for JIRA cloud.

Not only does it let you delegate the manage versions permission to whoever you decide, but it also lets you assign components to versions.

Suggest an answer

Log in or Sign up to answer