It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to get the projectID in velocity templates (*.vm)


I'm working on a custom Release Notes and I facing the following issue:

  • I have to create a link in the releasenotes.vm file and I need Version Id and the project id.
  • To get Version id It was pretty fast, but I cannot figure out a way to get the project id, $project returns its name, i've been testing but without no luck

#set($ver = $  works perfelcty

What is needed to retrieve the same for the project?

Thank you


1 answer

1 accepted

0 votes
Answer accepted

Hi @Adria Alonso 

It depends on the context. If on server side you put versionObj to the context you can use below samples to get projectId

#set($projectId = $versionObj.projectId)


#set($projectId = $

 I hope it helps

works like a charm!

Thank you

Glad that it works :) 

Like Adria Alonso likes this

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

274 views 1 2
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you