The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Include a specific label in release notes

Scott Ocamb
Contributor
April 18, 2013

I would lile to create custom release notes that only render issues with a lable = ReleaseNotes. I have been able to filter out sub tasks and other things but can't seem to figure out the syntax to only include issues with a specific label. Any help would be appreciated.

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
dleng
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 Champions.
April 18, 2013
#set ($labels = $issue.getLabels())
You will then obtain an array of all labels, for this issue, in which case you could do a velocity loop to loop through them and get the labels you want. http://stackoverflow.com/questions/6328868/java-velocity-foreach-loop
Unfortunately I have not tested this yet though, perhaps you could try this and share your findings here.
0 votes
dleng
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 Champions.
April 18, 2013

deleted