Forums

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

Automated polling script to find changes and create issue

rohan sharma June 7, 2019

I have data at third party setup. I want to poll the data, say at every half an hour to find  changes and create or update tickets in Jira via Jira REST API.

1. Are there such scripting mechanisms available in Jira?
2. If yes, then will that script trigger a Jira REST API call to create/update issues.

3. Does Script Runner provide any scripting mechanism to poll data?

 

1 answer

0 votes
Ravi Sagar _Sparxsys_
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 Leaders.
June 7, 2019

Hi @rohan sharma 

For 1 & 2 yes you can use Jira REST API. 

For searching issues in Jira

Just search for the issues created or updated in the past 30 minutes but using a JQL as a parameter when using Jira REST API

For searching issues in another setup and creating/updating issues

3. ScriptRunner can also expose certain REST Endpoints that you can be consumed by other applications but for your requirements you can use Jira native API.

You can also use ScriptRunner to consume other services as well. I would say go through these links and decide what works best.

Ravi

Suggest an answer

Log in or Sign up to answer