Hi All,
I want to automatically send an email to users a day before the sprint ends that they need to close the JIRAs. I have created JIRA automation to lookup issues with JQL "spint in openSprints() AND status != Done AND project = "my project name". After that when I create a compare condition, with
({{lookupIssues.first.sprint.endDate.jiraDate}}
equals {{now.plusDays(1).jiraDate}}
) and send email based on this condition, email is not sent. If I try to just skip the comparison and send email with
({{lookupIssues.first.sprint.endDate.jiraDate}}
and
({{lookupIssues.first.sprint.id}} in the subject, I do not get any values.
How can I get these values if my context is not the triggers, Sprint Created, Sprint Completed or Sprint Started?
Hello @Kavita Patil
Welcome to the Atlassian community.
Whenever you ask for help with an Automation Rule it will help us to help you if you provide:
Can you provide a screen image that shows the content of the Sprint field for one of the issues that is returned in the Lookup Issues results? What I am hoping to discover is if the issue(s) have been associated to multiple sprints. If they were associated to a sprint in the past, and were not completed in that sprint and not removed from that sprint, then the Sprint field will have multiple values. Trying to get the sprint date information for a specific sprint within the Sprint field is then more complex.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As you can see from the log the email is not sent. If I remove the condition the email gets sent, but the sprintId and enddate do not show up in the email. It just shows the following in the email. "Close Sprint JIRAs by EOD"
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.
Thank you for that additional information.
Can you provide a screen image that shows the content of the Sprint field for one of the issues that is returned in the Lookup Issues results?
What emails are you trying to generate? Are you trying to generate one email per sprint, or an email per assignee, or ...?
Note that based on your images you are using Jira self-hosted - Data Center or Server, but you added tags to your post that say "cloud". You are not using the "cloud" (Jira software-as-a-service) product.
Additionally, you posted this in the Jira Service Management forum. Are these issues in a Jira Service Management project, or are they in a Jira Software project?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am sorry I can't share the actual JIRA content as it is related to my work. I am trying to generate one email that gets sent to a group of people. This is just a reminder telling the group to close the JIRAs before then end of the sprint. I have verified that the list of the JIRAs returned by lookupissues has sprint assigned to it.
I will update the forums. I was not sure what to put there. Thanks for your help. I do not see how I can move it to a different forum. Do I need to repost to the right forum?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Looking at the documentation, it appears that the Sprint field is available as an attribute of issues only when one of the Sprint triggers is used for the rule.
https://confluence.atlassian.com/automation/jira-smart-values-issues-993924860.html
I also tried in my own data center instance using both the field name (sprint) and the custom field ID. Both generated no output in the log when trying to reference {{lookupIssues.first.sprint}} or {{lookupIssues.first.customfield_#####}}
I haven't worked out the details but you could perhaps use the Send Web Request action to make a call to the Jira API to get the agile info, such as Sprint, associated to the first issue in the list.
You would have to parse the output to get the sprint information out of it.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.