Jira automation - smart values for Release Version

Andrzej Hull
Contributor
April 1, 2022

Hi.

I am trying to create automation rule where I send email each time a new release is released.

I need to put release version link i nthe email body.

I know that for Issue it is <a href="{{issue.url}}">{{issue.key}}</a>

But what is it for release version?

3 answers

1 accepted

0 votes
Answer accepted
Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 4, 2022

Hi @Andrzej Hull ,

Here is a more detailed description of valid smart values for versions:
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--version--

The version itself is not an issue in jira. There is no link provided (according to the documentation). As it looks for me the "url" is kinda put together with the ID of the version so I guess it can be built with gathering the id and work with string concatenation.

Please let me know if this could give helpful input.

Best
Stefan

Andrzej Hull
Contributor
April 5, 2022

From what I can read, it is not possible to place release/vfixVersion link in the email body.
Am I correct?

Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 5, 2022

Not directly. The release/version doesn‘t have a dedicated smart value „url“.

Best
Stefan

Andrzej Hull
Contributor
April 5, 2022

Would you happen to know a workaround?

Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 5, 2022

As far as I got it right the url shown when opening a version is built something like:

<your_jira_domain>/<version_ID>/....

As the versionID could be generated via smart value from the automation rule I guess it could worl to concatenate a string to generate the url. (didn‘t test this, that‘s just an approach I would give a shot)

Best
Stefan

Andrzej Hull
Contributor
April 5, 2022

Is it possible to use variable in HTML expression?

It would be some kind of concatenation.

Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 6, 2022

do you mean:

<a href="http://..../.../{{any.smart value}}/andSoOn.html">Release</a>

 

As far as I know this should work.

Best
Stefan

Andrzej Hull
Contributor
April 7, 2022

You're right, this works.
Thanks you!

Like Stefan Salzl likes this
Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 7, 2022

You‘re welcome 😉

Tamir Melamed September 12, 2023

what is the exact format for get version id?

Like Daniel G likes this
Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 13, 2023

hi @Tamir Melamed 

This depends on your use case. As this is an old and already resolved post and in case it doesn‘t provide you the answer i would recommend to open a new question describing exactly or use case you would like to solve.

This gives the community more input and makes it easier for us to provide a better and more accurate solution.

Best
Stefan

Manny Rubio-McMillon
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 10, 2024

Hi @Stefan Salzl

 

I am actually working on the same use case as this post where I want to get the URL of the fixed version linked to the issue. The problem here I face is that I am trying to figure out what URL you all utilized to input in the email to provide the release link? 

 

Would it of been this one? 

<a href="https://company specific name.atlassian.net/projects/EC/versions/10181/tab/release-report-all-issues>Release</a>

Would the italicized number the only smart value I need to make it work? 

Like Neil Turner likes this
Neil Turner
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 13, 2024

I used the above and substituted the version ID 10181 with {{version.id}} and it worked fine

 

The "EC" in the path needs to be changed to your jira project ID, but if you cut and paste the basic link from your Jira Release page then it's easy just to append the {{version.id}} instead of the ID.

      

2 votes
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.
April 1, 2022

Hi @Andrzej Hull 

Welcome to the Community!!

Please find the Smart Value documentation for all the references

https://support.atlassian.com/cloud-automation/docs/jira-automation-triggers/#Jiraautomationtriggers-Versioncreated,updated,released

Thanks,
Pramodh

Andrzej Hull
Contributor
April 4, 2022

Thanks but this doesn't really help.
I can't find exact answer in the documentation.

Could you please provide this little piece of expression?

Like Jeff Post likes this
1 vote
Daniel G February 1, 2024

Try:

<https://[SUBDOMAIN].atlassian.net/projects/[KEY_PROJECT]/versions/{{version.id}}|{{version.name}}>

 

Suggest an answer

Log in or Sign up to answer