Spending some time setting up JIRA Automation which will save many man hours! Very exciting new feature.
Aiming to create a rule which 'When: Version released' it posts a message to our #releases slack channel.
Is it possible to retrieve the release notes in text format within the 'Send Slack message' actions Message box?
Yes, you can do that.
Trigger on the version release and then use JQL to get the associated issues, if you want to include those. To see what is available for the version smart value, please see:
https://support.atlassian.com/jira-software-cloud/docs/smart-values-general/
If you cannot see what you want, consider using the REST API to grab an example version and see if other attributes are available:
https://support.atlassian.com/jira-software-cloud/docs/find-the-smart-value-for-a-field/
Best regards,
Bill
@William Sheboy
For the JQL for the associated issues, what function can I use to query for only the version which was released, or does the trigger sort that out for me?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Alex Romano
The trigger provides the version that you use in the query. Here is what worked for me in a test...
project = myProject AND fixVersion = '{{version.name}}'
Release {{version.name}} included these items:
<ul>
{{#lookupIssues}}
<li><a href="{{url}}">{{key}}</a>: {{summary}}</li>{{/}}
</ul>
Best regards,
Bill
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.
On release, I am trying to post a comment to the JIRA released but on saving the below it throws an error. Any clues?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Avril Pinto -- Welcome to the Atlassian Community!
What is the error message that shows next to that trigger?
Best regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bill Sheboy @Joe Miller hello,
Is it possible to send the link for Jira release notes into Slack channel?
Could you possibly share the message for Jira Automation "When a version is released → then send a Slack message" for such case?
version {{version.name}} was released on {{version.releaseDate.mediumDate}} just returned a simple text.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
A lot about automation rules is experimentation, and so looking around in Jira to see what might work...For example, if you go to a company-managed project's release notes page, the URL would be:
myCompanyUrl/projects/myProjectName/versions/myReleaseVersionId/tab/release-report-all-issues
If you plug in your values, from the released version and project information this could be automated with:
myCompanyUrl/projects/{{version.project.key}}/versions/{{version.id}}/tab/release-report-all-issues
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks a lot @Bill Sheboy . It works :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm trying that same content in an email content section.
Release {{version.name}} included these items:
<ul>
{{#lookupIssues}}
<li><a href="{{url}}">{{key}}</a>: {{summary}}</li>
{{/}}
</ul>
I get the first line "Release..." but not the list. Any ideas?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Joe Miller
Please post an image of your complete rule and the audit log showing the details where the rule did not work as expected. That will provide context for the community to comment.
Without that information, I can hypothesize, either:
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Worked. It was the lookup. How would I make this a global automation if I'm referencing project?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Joe, I am glad to learn that helped.
Global/multi-project rules may be created by a site admin, and they can reference all or specific projects. Some things to note if you use such rules:
Thanks,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Bill Sheboy Very helpful. Solved a big problem for me. Thanks a lot.
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.