If no issues are created in a project for more than 4 weeks notify particular user

Hi,

I need to know how to notify an user if no issues are created in a project for more than 4 weeks.

I tried to use subscription filter. Like if there are no created dates in these 4 weeks then notify.

I used the below jql query as filter. 

project = "project" and issuetype = "issuetype"  AND  NOT (created > startOfWeek(-4w) and created< now())

 

This fetches no results . If this is true that is if there are no issues in this 4 weeks how can i notify the users.

Please suggest solutions on how to solve this. Also any other methods to acheive this requirement.

Thanks,

Krithica

1 answer

It's very hard to search for something that is not there.

A subscription is the closest you'll get, but your users will need to know that "this subscription with 0 results means the project is empty" and "if it has results, you can ignore it"

There isn't another way I can think of doing this without code.

Code idea, although not the only way to do it - have a project with one issue per project and a scripted field that returns the number of issues in the named project, and the date the project was created.  Then you can subscribe to "Project = projllist and project-issue-count < 1 and date-project-created < -4w"

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published yesterday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

41 views 0 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