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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.