How to send a notification when new issue is added to JQL list of JIRA

How to send a notification when new issue is added to JQL list of JIRA.

 

I have JQL filter which has 50 issues, I want to get notification from JIRA when any new issue is added to the list.

Updates on existing issues should not be notified.

 

Thanks,

SRIni

1 answer

1 vote

That's not how JQL works, it is not a list of issues, it is a filter.

In one sense, there's an easy answer to the question.  Issues are never "added" because it's not a list, so there's no need to send any notifications.  

What you need to do is run the filter regularly, with an extra clause that says "since the last time it was run".  So, take your existing filter and create a copy of it.  Let's say it's simply "project = X and resolution = unresolved".  Copy that and add "and created > -1h".  Now save the new filter, and then subscribe to it, setting the timer to 1 hour.

Hi Nic,

Thanks for looking into it.

But my requirement is different!

I have filter : (Project="A" OR Project="B") AND Fixversion="XYZ"

Presently it is listing 50+ issues I dont want to see any notifiaction for these existing issues but if at all new issue falls under this criteria I need to be notified.

As you mentined if I use created >-1h , It will not work. 

 

 

 

What "does not work"?  Adding the "created >-1h" means "created in the last hour".  What you're asking for is your filter plus that.

Have I misunderstood what you are looking for? 

Let me explain you :-

 1) (Project="A" OR Project="B") AND Fixversion="XYZ" is my filter.

If some updated an existing issue with fixversion="XYZ" the filter which you gave does not work.

If I add updated >-1h filter will notify for the all the issues which falls under the criteria.

What I am looking for is "There should be a way to compare the list of issues which were there.

and list of issues which are there in the filter  after certail point of time and notify for the newly added issues.

I'm afraid the filter I gave you works perfectly for me, it tells me the issues that were created in the previous hour that match the project and version.There is no comparison function in JIRA, a filter simply tells you what matches the search when it is run.To get a list of issues "added" in the last hour, run(Project="A" OR Project="B") AND Fixversion="XYZ" and created >-1h

What about the issues which are updted?

If a issue got created yesterday with no fix version values and if some one changes fixversion to "XYZ" today.

This also should be taken care

 

 

Ok, use updated instead of created.

 But, think carefully, as you probably don't mean just "updated", you might want to think about "fixversion was changed to" type clauses.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in Jira

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,120 views 0 8
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