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

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

'Related Labels' showing non-related labels

This query is with regards to the 'Labelled Content' results page after a label has been selected from the Labels List macro. 

For example, I have labels 'A', 'B', 'C', 'D', 'E' where only 'B' and 'C' are related to 'A'. When I click on 'A' in the Labels List, the result correctly shows 'B' and 'C' under Related Labels. When I add 'B' and 'C' to the list of required labels (in addition to 'A'), there should ideally be no results in Related Labels. However, in doing so, 'D' and 'E' appears in the list of Related Labels when they are not supposed to. 

Is there a workaround for this? What is the logic for Related Labels?

3 answers

1 accepted

1 vote
Answer accepted

Hi @Sunita Verma,

Although the labelled content page is not editable, the list of related labels is most likely populated with the related labels macro. That macro pulls in all the labels from pages that have the listed labels on them. From the documentation:

The Related Labels macro lists all labels from every page which has one or more labels in common with the current page.

D and E most likely appear in the list of related labels because you probably have pages in your space that combine with label B or C.

It is enough to have only 1 page with both labels on it to impact the related labels macro's result.

got it! so it shows related labels to any of the labels that are already selected, thanks for the clarification

Hello there,

There is a strange logic in the actual "related labels" results. When you add suggested labels, despite the "AND" search with all selected labels, it widens the list of related labels instead of narrowing it. And most of the time, the result become empty because suggested labels are scattered across pages that have not many identical labels.

I contacted the Atlassian support to ask for an improvement but they want to gather interest in the first place.

So, if you are interested, you can vote for this ticket :
https://jira.atlassian.com/browse/CONFSERVER-68220

Have a nice day !

0 votes

Welcome to the community!

I think you are misunderstanding is explained when you say "required" in your question.  The macro accepts a list of labels to relate stuff to, not doing "only related to".   It is not listing labels only related to your parameters, it's for listing labels related to all the labels you are asking about.

I am struggling to explain this clearly, I think, so I'll try to explain with an example.

Using your labels, I can tell you that you have something like the most simple case:

page 1, labelled A, B, C

page 2, labelled B, D, E

So, when you put just A in the macro, it sees page 1 and puts B and C in the list of results.  When you then put B in the parameters, it now sees page 2, which has D and E, so it adds them to the list of results because they're related to B

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Confluence

Confluence Mythbusters: Does Atlassian even use Confluence?

Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...

1,542 views 7 29
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