Forums

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

JSONObject["name"] not found

Deleted user
February 20, 2020

When I try to get details about my Jira projects, in the class JsonParseUtil, parseBasicUser method, the code look for the field "name" in the "reporter" group.

But my Json delivered doesn't contains it:

{
"self":"",
"accountId":"",
"emailAddress":"",
"avatarUrls":{
},
"displayName":"",
"active":,
"timeZone":"America\/Sao_Paulo",
"accountType":"atlassian"
}

 There's some update that removed the field?

2 answers

0 votes
Bob Swift
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 Champions.
August 16, 2012

If Azwandi's answer doesn't fit your situation and you do need to update pages, then see How to automate adding text to Confluence pages

0 votes
Azwandi Mohd Aris
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 Champions.
August 16, 2012

Hi Peter,

You can make use of the custom layouts, which is configurable for your space. This acts like a layout template for your Confluence pages - check out this documentation - https://confluence.atlassian.com/display/DOC/Customising+Space+Layouts. The layout that you will most likely need is the 'Page Layout'.

Once you have identified where to put the macro, insert the following line to render the macro:

$helper.renderConfluenceMacro("{myusermacroname}")

This is similar to the codes discussed in here - https://answers.atlassian.com/questions/39911/helper-renderconfluencemacro-recently-updated-type-news-author-action-user-name-max-10-theme-sidebar-spaces.

NancyB455
Contributor
April 19, 2019

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events