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 vote

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published 48m ago in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

40 views 3 3
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