Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Is it possible for a page to automatically inherit its parent labels?

Now that automation is available to use, is it possible to create a rule so that:

When a page is published it automatically inherits all the same labels from the parent page?

I've been looking through documentation but it still isn't super clear for me. TY!

2 answers

1 accepted

0 votes
Answer accepted
Sheerine Baucum
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Feb 01, 2023 • edited

@Darryl Lee @Deb This is a great use case for including smart values within labels. Our team is looking into this to see what options exist. I will follow up after our investigation. Thank you!

Sheerine Baucum
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Feb 01, 2023 • edited

@Darryl Lee @Deb The smart value {{parent.page.labels}} is not a valid smart value, which is why it cannot be added to labels. However, you should be able to include valid smart values within the add labels component as long as the output returns valid characters.

Regarding functionality around inheriting parent page label - this cannot be accomplished right now, but we are aware of this concern and will look into prioritizing it based on our other requirements. Thank you for the feedback!

Like Deb likes this

Forgive me if I should create a new question for this, but I've run into issues trying to use (what I think are valid) smart values in labels. For example, {{page.author.fullName}}.

In my screenshot below, you can see that my rule failed with errors, even though the audit log shows the correct value is being retrieved for {{page.author.fullName}}. Am I doing something wrong? And are the smart values that are valid for labels documented somewhere?

2023-02-06_19-28-27.png

Darryl Lee
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Feb 06, 2023

Ohey @Derek Farr -

Labels can't have spaces.

https://jira.atlassian.com/browse/CONFCLOUD-37363

I guess they need to update the error messages for Confluence:

https://confluence.atlassian.com/automationkb/automation-for-jira-fails-to-copy-components-list-to-label-with-error-message-the-label-contains-spaces-which-is-invalid-1072473388.html

Good suggestion there to add something like 

.replace(" ","-")

or maybe and underscore, if you prefer.

Like # people like this

Thanks for the extremely helpful response @Darryl Lee! I created a variable with the smart value {{content.author.fullName.replace(" ","_")}} and the rule worked.

Side note: To get the rule to work, I also had to change the colon (:) in my label to a hyphen (-). Seems like colons aren't allowed in labels either.

Like Sheerine Baucum likes this
0 votes
Darryl Lee
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Jan 31, 2023

Hi @Deb -

Ooooh, I finally get to answer a question about Automation for Confluence. Exciting!

(Upgrades personal Confluence Cloud instance to free trial of Premium...)

Ok, so... the bad news is, it doesn't seem like this is available.

There is an Add label action

There is a Smart Value for parent pages {{parent.page.labels}}

BUT THERE IS NO WAY TO use a Smart Value in the Add labels action. Boooooo.

Feature request for @Sheerine Baucum - I don't see this one filed yet. :-/

 Hi  @Darryl Lee

TY for your answer! 

Is this dependent on the type of the plan? Premium vs. Confluence Cloud?

Sheerine Baucum
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Feb 01, 2023

@Deb Automation is currently only available in Confluence Cloud Premium.

Like Deb likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events