Issues with creation on a rule.
Asked by Mohamed Mbaye:

Hello Every one, hope you doing well, we start a projet with JSM for our enterprise and we need to create a rule who say to notify us when one ticket is create more than 30 days and don't have a rapporter or all tickets that are not closed more than 30 days.

Someone can help me please.


Answers:
author: Holger R?sch
body: Hi [@Mohamed Mbaye](/t5/user/viewprofilepage/user-id/5339641) ,

there are two options I can think of:

1. as [@Natalya Ozhigova](/t5/user/viewprofilepage/user-id/4460643) suggested a scheduled trigger should be used. However, I would modify the jql a little

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/286165iC4FB0719AEDB129F/image-size/large?v=v2&px=999 "image.png")

This gives you all the tickets that are at least 30 days old, not resolved and are not assigned to anyone (I suppose that's what you meant).

For notification you can use e.g. the action "Send email"![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/286166i8A2A56071B6F42EC/image-size/large?v=v2&px=999 "image.png")

That should do the trick.

2. Alternatively, you can create a filter with a jql like this:

project in (*projectName*) AND created\<=startOfDay(-30d) AND resolution = Unresolved AND assignee is EMPTY

make sure you provide access to all people who need this information (maybe using a Jira group would be the best option)![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/286172i220ADD77A2F3ABAC/image-size/large?v=v2&px=999 "image.png")

Then you configure a Filter Subscription which sends the result of the filter to the chosen group as scheduled![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/286173i932571118933A0B2/image-size/large?v=v2&px=999 "image.png")

or you ask people to subscribe if they wish.

Hope this helps

Best,

Holger

comments: author: Mohamed Mbaye
body: Hello [@Holger R?sch](/t5/user/viewprofilepage/user-id/1667964)

Thanks you for your answers, I try it and it works. Very appreciate it :)

Best Regards

Mohamed.


author: Bill Sheboy
body: Hi [@Mohamed Mbaye](/t5/user/viewprofilepage/user-id/5339641)

Just checking if your question is answered and the rule working as expected.

If so, please accept the answer(s) which helped you. That will help others in the future know if there are relevant answers when they have a similar need. Thanks!

Kind regards,  
Bill


author: Natalya Ozhigova
body: Hi [@Mohamed Mbaye](/t5/user/viewprofilepage/user-id/5339641)

You can use a rule with the trigger "scheduled" (run rule once per day) and jql like this "created\>=startOfDay(-30d) and created\<startOfDay(-29d)".

Hope it helps you

Best,

Natalya

comments: author: Mohamed Mbaye
body: Hello [@Natalya Ozhigova](/t5/user/viewprofilepage/user-id/4460643)

I try your solution and its works very well, thanks you for your answer :)

Best regards.

Mohamed.


author: Mohamed Mbaye
body: Hello [@Natalya Ozhigova](/t5/user/viewprofilepage/user-id/4460643), [@Holger R?sch](/t5/user/viewprofilepage/user-id/1667964) , I come to you again to ask your help, I'm trying to create a rule so that all the tickets from the rule above can be grouped in a single email but I'm not succeeding.

Do you have any idea please ?

Thanks