Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I access the attachment labels via SOAP?

Marcel Kurzmann
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 9, 2012

The function getLabelsById(String token, long objectId) didn't accept the attachment ID as objectID.

How do I read and write the labels on an attachment via the SOAP-API?

2 answers

0 votes
Marcel Kurzmann
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 16, 2012

Hello Guilherme,

yes please add this feature request (or bug?).

At least the documentation should be more precise and replace in the second part of the brackets (getLabelsById(String token, long objectId)) "long objectId" by "string pageId", as "long objectId" suggests that labels of other objects than pages might be requested, what is obviously not the case, as only labels of pages can be obtained.

Even the notion "ContentEntityObject ID" is not described in detail on this page:

https://developer.atlassian.com/display/CONFDEV/Confluence+XML-RPC+and+SOAP+APIs

Kind regards.

Marcel

0 votes
GuilhermeA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 9, 2012

Hello Marcel,

I don't believe that this function will function that way. By the documentation:

Vector getLabelsById(String token, long objectId) - Returns all Labels\ for the given ContentEntityObject ID

So I believe that you could try to get the attachment information and see if it does return the Label as well. If it does not, then we can create a feature request to add this feature on the next calls :)

  • jira.atlassian.com

Hope this helps!

Cheers,

Guilherme

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events