Automation: Retrieve the project the release belongs to when using the Version released event

david_stevens February 21, 2024

Hi,  

 

I am looking at creating a slack message that is triggered by the Version released event.


In my slack message it would be great if I could access the project the version belongs to with something like

{{ version.project.name }} {{version.name}} has been deployed :tada:

 

I haven't managed to find it,   so I am considering adding a condition to check if the release is from a project,   but that too I cannot find.

 

 

 

Many thanks!

3 answers

1 accepted

0 votes
Answer accepted
david_stevens March 21, 2024

Many thanks @Bill Sheboy  and @Pramodh M !

I've got the following to work

 

image.png

1 vote
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 22, 2024

Hi @david_stevens 

For a question like this, please post an image of your complete automation rule, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected.  Those will provide context for the community to offer ideas.  Thanks!

Until we see those...

If you need the project name in the message, you could first use lookup issues with JQL to find the issues in the version released, and then get the project from one of those with:

{{lookupIssues.first.project.name}}

Kind regards,
Bill

1 vote
Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 21, 2024

@david_stevens 

Have you tried project.name ?

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-projects/

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--version--

Below is the excerpt from the doc

Available properties:

  • {{versions.name}} - Returns the name of the affects version

  • {{versions.description}} - Returns the description of the affects version.

  • {{versions.archived}} - Returns true if the affects version is archived, and false if not.

  • {{versions.released}} - Returns true if the affects version is released, and false if not.

  • {{versions.releaseDate}} - Returns the affects version's release date. Can be combined with other date and time smart values. Learn more about date and time smart values.

Thanks,
Pramodh

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events