Hi Team,
my requirement is need to send the notification mail to all users available in 1,2 & 3 multi user picker fields and we need to trigger the mail daily
Kindly let me know any solution for this.
Thanks.
This could be easily done with Automation for Jira, however looking at the tags you use scriptrunner. If that is your daily driver, somebody else has to answer this. If you are also using / willing to use Automation for Jira, then I'm happy to help.
A scripted service seems to be the solution here. Here's the logic:
1) Create a service that runs once at the start of each day (say 0005 am).
2) Make it run a JQL search using this query:
"Approver Date" >= startOfDay() AND "Approver Date" <= startOfDay(7)
This way it should only return issues which have less than one week remaining on their Approver Date.
3) If any such issues are found, collect the users from their respective fields and send them a custom notification.
Hi @Ivan Tovbin
thanks for your response
how can i create a service in jira. can you more elaborate on this?
can we know the logic in B/W services and JQL. and how this logic will trigger the custom mails to users in a multi-picker field.
Please advise the version of Jira Server and Scriptrunner that you are using.
version of jira server : v8.5.4 & script runner version : 5.8.0-p5 Thanks.
Hi @Ivan Tovbin , Sorry for the delay, now am trying to resolve this issue using Jobs option in script runner Plugin.
@RichardA
It seems the problem is in this line:
def id = ("Email Address: "+userSelected.getEmailAddress());
First off, the value doesn't really make much sense. Secondly if your want to use this variable outside of your cycle then you need to declare it outside first.
Hi @Ivan Tovbin , Can you help to get the solution for this issue?
I tried to resolve this problem with so many ways but i couldn't found the exact template to get this. Thanks
Try the code I provided above, should do the trick
It looks like you're new here. Sign in or register to get started.