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 save labels dynamically via page properties or Labels macro?

Janek Alla Aug 05, 2016

I'm using product requirements blueprint and I need that during creation new requirement an addition label will be saved together with by default label "requirements".

The additional label should be like "xx123-requirements" where thexx123 is projectCode for example.

I need it because I want to list the requirements using Product requirements index blueprint and by filtering them with the project based label on appropriate project page.

Perfect would be use a variable like $projectCode in the page template were the "Create new requirement" macro will be placed so that the label will be concatenated by the variable $projectCode and static string "requirements".

How to do it?

P.S. Maybe there is another solution how to filter or limit the requirements list in case I put it into every project page template?

Using Confluence 5.7.

1 answer

1 accepted

3 votes
Answer accepted
Roman Kirilenko Aug 05, 2016

Hi!

Maybe another solution will be suitable for you. I don't know the whole case, but you can try to use Page Properties macro + Page Properties Report macro. Page Properties Report allows you to build the report table (you need to use labels to identify what pages should be included into the report, this can be one label like "requirements" for all requirements pages). Then your report table can be easily filtered with Table Filter and Charts add-on.

As a result, you'll get something like this:


image2016-8-5 16:18:35.png 

Janek Alla Aug 07, 2016

We don't have Table Filter and Charts add-on.

Nick Worth Apr 04, 2017

Is it not possible to define a variable within the page that then sets the value for the macro on the page? Trying to create global templates with Macros seems impossible without this.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

909 views 0 19
Read article

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