Could you please suggest to us how to get the label value?
I have attached a screenshot below.
while fetching the resultset from json response to java, I am not getting the label field itself.
Trying to get this value from java methods.
What is the REST API call URL that you are using?
There are separate API calls for retrieving the content of the page and retrieving the labels.
Please refer to this for more info: https://docs.atlassian.com/ConfluenceServer/rest/8.0.3/
Hope this helps.
Thanks,
Vamsi
Hello @Sundar sarma ,
Please give more information on what methods you use and on what data as it is not clear.
Label is attached to Page and is stored with its ID, text and other parameters. You can et label data by its ID or by getting page and then its labels and then it s data and so on...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Andrii Maliuta I am using getChildFromParent(parentpageid) from ConfluenceRestServiceApi. It is fetching all the childrens for the mentioned parent page id.
But I did not get any label info.
I am trying to get all labels for all childrens. How to get this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Sundar sarma ,
Not sure abour "ConfluenceRestServiceApi" class ad this API, as I usually see other services/managers used, such as PageManager, PageService, LabelManager, LabelService, etc.
Here is an example:
PageManager pageManager = ComponentLocator.getComponent(PageManager.class);
SpaceManager spaceManager = ComponentLocator.getComponent(SpaceManager.class);
Space space = spaceManager.getSpace("SPACE_KEY");
List<Page> pages = pageManager.getPages(space, true);
pages.forEach(page -> {
page.getLabels().forEach(label -> {
...
});
});
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.