Forums

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

How to get to know if new jira ticket is received. After received have to fetch ticket description.

Annapurna September 8, 2019

Hi,

When new jira ticket arrived in my jira account i have to fetch the description for automating some tool. Please help me.

 

Thanks,

Lakshmi

1 answer

0 votes
DPKJ
Community Champion
September 8, 2019

You have two ways to do this,

  1. Polling
    • You can poll issue search api for recently updated issues and evaluate them.
    • You just need to keep timestamp of last poll, and tally of updates.
  2. Webhook

If you were using Java and Atlassian Plugin Development SDK, Jira provide events and listeners for plugins.

DPKJ
Community Champion
September 10, 2019

@Annapurnalet me explain polling solution,

  1. Jira issue have 'created' field which hold timestamp when issue was created.
  2. This field is accessable using JQL query,
  3. So using this field you can ask JIRA for issues created after specific date/time.

Now you can write a program that store time and ask Jira for new issue after fixed interval (like 15m or 30m or 1 day).

You can also add script to CRON, and store last fetch timestamp in some file.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events