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

What is the usage for addLabelByName?

Hanchel C August 16, 2013

Is addLabelByName https://developer.atlassian.com/static/javadoc/confluence/4.2.13/reference/com/atlassian/confluence/rpc/soap/ConfluenceSoapService.html#addLabelByName(java.lang.String, java.lang.String, long) exclusive to labeling spaces and pages?

I'm trying to label attachments using this function but I think the reason why the labeling isn't working is because the attachment ID that I'm passing in won't qualify as the "ContentEntityObject ID". The attachment ID I'm using is from the getAttachments function.

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
Guilherme Nedel [Atlassian]
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 18, 2013

Hello Hanchel, the assumption is correct, currently the addLabelByName supports pages and spaces. You can create a feature request in http://jira.atlassian.com requesting for an improvement, you may use this ticket as a starting point.

Hope that helps! :)

Hanchel C August 18, 2013

Thank you, Guilherme! I've started a ticket.

1 vote
Joe Clark
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 18, 2013

Hi Hancel,

Please see this question for more detail: https://answers.atlassian.com/questions/160064/confluence-cli-cannot-add-a-label-to-an-attachment

I created a plugin you can install that adds a new SOAP method for adding labels to attachments. You can install the plugin using the "manage add-ons" item in the Administration console. The download link for the plugin is here: https://maven.atlassian.com/contrib//au/id/jaysee/confluence/plugins/confluence-missing-api/1.1/confluence-missing-api-1.1.jar

TAGS
AUG Leaders

Atlassian Community Events