Dear Members,
Please help to find a solution.
Need to make a trigger when total time logged hits a certain threshold, rule trigger and send mail.
Thanks in Advance
BR,
M Faizan
You can write an automation rule by checking if Value changes for Time tracking. After that you can put the numeric condition to compare if total time is > then your threshold, then use New Action to trigger Email action.
I haven't tried this... but this approach should work.
Hi @Vishal Biyani what condition need to put in JQL for total time spent i.e. if i am putting time spent it is fetching project ticket details that is above threshold , please comment
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Let me try to elaborate a bit more. There is No need for JQL, if you are interested in Time tracking changes.
When the rule checks for "Value Changes for Time Tracking" it will get fired when time is logged against any issue in project. You can include the event. I had selected "Create Issue" and "Edit Issue"
see the right side of the screenshot.
After that you can use smart values like {{issue.aggregatetimeoriginalestimate}} to check for instance i can say
if {{issue.aggregatetimeoriginalestimate}} > 40*3600 Then trigger email
Hope this helps.
[Note: 40*3600 means 40 hours since in my instance time is set to minutes granularity]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Vishal Biyani for extended help.
I have added one extra condition as it works for overall project hours so restricted on a particular category PFB snapshot.
If you can validate that would Great help !!
Thanks in Advance!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Looks good. Just make sure that default unit of time tracking is minutes. Jira admin can check this
settings -> Issues -> Issue Features -> Time Tracking
if this is set to hours then change the division from 3600 to 60.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Vishal Biyani Appreciate your extended help and prompt responses to akke it happen..
Much Appreciate it!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hope you doing good, can you please help or Any one please.
Trigger was working fine before but after minor tweaks it stop working even after revert with previous configurations, here is some details:
- Sending email every time when condition meets but now not working and giving error mentioned below
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have a rule to warn if overbudget occurred, you can play with the work ratio to meet the needed threshold. And the rule runs every time anyone is logging time or like mentioned above to use 'scheduled' trigger with CRON expression
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Faizan Iftikhar yes, it's % of the logged time, its original estimate vs remaining/logged
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Faizan Iftikhar ,
Could you please clarify where the time is being logged/set? Do you need to have some custom menu/UI to set the time for sending email or it is just inside some custom code (add-on) that is required? Is it JIRA cloud or server ?
THank you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Thankyou for reply
- time logged in JIRA cloud
- every ticket belongs to bucket i.e. category, which have limit of hours i.e. 50 or 60 hrs per month
- if bucket hours is reach limit of 30hours , trigger start work and send mail notification
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You could use the Scheduled trigger and run it every 5min for example.
In the JQL field you can filter for all issue having more than X hours logged. Example for more than 4 hours: timespent > 4h
And as an action you can use the Send Email action
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Thankyou for your reply
Facing issue as in return any ticket that has above 30 hours spent is reporting back. need to know the query name of time logging means work log created so that in return got a proper figure.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.