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

Is there a way to use a wildcard to filter out multiple labels at once?

Ross Righter Sep 06, 2016

This question is in reference to Atlassian Documentation: Labels List Macro

Is there a way to use a wildcard to filter out multiple labels at once?

 

I'm working on documenting any user issue in 1 space for both external & internal apps.  I'm looking to use this macro to show the labels for just external tags.  I've created naming conventions for labels and want to filter out the ones for internal app issues.

For example, I'd want to filter out the labels 'internal-app1-feature1' & 'internal-app2-feature2' by entering 'internal-*' where * is the wildcard.

2 answers

1 accepted

2 votes
Answer accepted
Milo Grika Sep 07, 2016

There aren't wildcards in macro. We have a similar need, and indeed, I continue to add to the exclude list as necessary.

Your best bet might be to have two spaces, one for internal and one for external projects. Then you specify the Space from which to list the labels.

Ross Righter Sep 07, 2016

Thanks!  That's what I'm thinking we'll need to do, but I wanted to avoid 'a separate Space for everything' situation.  My organization is just starting to use Confluence and I don't want to be "that guy" that makes it bloated.

Bill Bailey Community Leader Sep 07, 2016

Having been a Confluence admin for 5+ years, I would go with separate spaces. With that approach, you can control permissions and visibility. Trying to manage labels on 1000+ pages will not be fun. And adding a space does not create bloat, just an easy way to organize information.

The other reason for breaking up content into spaces is to avoid page name collisions.

Ross Righter Sep 07, 2016

The more I think about it, the more this seems to be the right answer.  This functionality would still be useful as I could centralize info and work to one Space for the topic (User Issue) and hopefully avoid going to the wrong space for the info.

But, to your point of managing lots of pages in the future, it does make sense to split in this case between Internal User Issues & External User Issues.

0 votes

This is not an answer to your question, but wouldn't the problem go away if you would define two sets of labels?

One set of labels for the features and one for tagging them as "internal" or "external". Maybe you could go so far to label apps also separate from the features. With this is would be easy to filter on internal and external features.

Would this interfere with other of your requirements? One drawback would be that you cannot simply click on a label and have all related documents listed. Users need to specify more than one link to list the tagged pages.

Ross Righter Sep 07, 2016

That's what I'm trying to do, but I'm not understanding how to scope the Labels List Macro to just one set.

For example my excluded labels list looks like this:

kb-how-to-article,kb-troubleshooting-article,kb-resource,admin-not-reviewed,admin-resource,admin-not-reviewed-support-app

And I'll have to keep adding to the list whenever a new label is created in the set(s) I want to exclude (in this example any label prepended with "kb" or "admin").

Does that help explain more fully?

Sorry, I did not make my point clear.

What I was trying to say is, why don't you label your pages with "kb", "how-to-article", "admin", "not-reviewed" instead of the compound labels (e.g. "kb-how-to-article")?

Then selecting on those "atomic" labels in the macro may be easier.

The only drawback I can think of is the one I mentioned in my answer. But you may have other requirements that lead to your naming convention ...

Ross Righter Sep 07, 2016

That makes sense.  The drawback you mentioned does apply in this case as the issues being documented will have varied relationships between app & feature, and keeping those as open as possible will provide an easier way for my team to explore and find the info.  (That is if their query in the search macro and the content don't match)

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

6 Awesome Ways to Apply Trello, JIRA and Confluence to your Project

I attended  Atlassian Summit 2019  and learned a lot from the presenters, attendees and knowledgeable Atlassian product managers. The presentations I attended focused on applying Agile, pla...

1,503 views 8 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