How do we do continuous monitor the new JIRA tickets using the JIRA Rest Client library

We need to continuous monitoring of the JIRA tickets .

1 answer

0 votes

There's two parts to this answer

1. What do you want from "monitoring"?

2.  What does "continuous" mean in this context?

The REST API for JIRA is best thought of as a pull process.  You have a system which asks JIRA questions or gives it commands by firing REST requests at it.  This can never match the dictionary definition of "continuous" because your system is going to have to ask for information every X hours/minutes/seconds/whatever.

So, if you're happy to define your "continuous" as something like "every X minutes", you can use the REST API to do things like "list all issues updated since the time I last looked" and process them.

You will run into problems if X is too small though, as you'll be hammering the JIRA with requests

My instinct is to do it the other way around.  Get JIRA to poke your system whenever the things you want to "monitor" happen.

Thanks for the reply. It is a kind of a listener,  listening to the specific project / issue in JIRA to check whether new issues/updates come up . Whenever a new issue comes up, we would read the same .

Ok, the best way to do that is from the other end - on the "create" transition in the workflow, have a post-function that sends information over to your application.

If you have to do it from the outside, then you'll need to write something that polls JIRA with "project = X and created > 'last time I looked'" over the REST API

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,119 views 4 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you