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?

3 answers

1 vote
Martin
Contributor
July 28, 2014

Here is a working solution to display every issues where "you" are mentioned :

Write a filter like this one (which description could be "Issues for which I am assignee, reporter, watcher or somehow mentioned"). Then use the "Filter results" dashboard gadget using that filter.

status in ([statuses you want here]) AND (assignee in (currentUser()) OR reporter in (currentUser()) OR summary ~ currentUser() OR description ~ currentUser() OR comment ~ currentUser() OR watcher = currentUser())

0 votes
Nic Brough -Adaptavist-
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.
May 4, 2014

Watching is not the same as being assigned an issue, it's an active choice to get involved really - autowatch only kicks in when you've directly interacted with an issue yourself.

I use autowatch too, but if it did it just because I'm assigned an issue, I'd have to turn it off, the functionality would be useless to me.

Anyway for your case, there's a workaround.

1. Install the Jira toolkit plugin (free and works on OnDemand)

2. Add a "participants" field, globally to all issues (no need to actually put it on a screen, but you can if it would be useful)

3. Create a filter for "participants = currentUser()" and use that in your dashboard.

The participant list = Reporter, Assignee and anyone who has commented. It's not quite autowatch, but it will cover your reporting.

0 votes
Martin Duttweiler
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!
May 4, 2014

Hi Martin,

You are only added as watcher automatically if you create or comment a issue.

Hope this helps

Best regards,

Martin D.

Martin
Contributor
May 4, 2014

Thanks Martin ( :D ) ,

I was counting on that kind of behavior so all issues that I am concerned with could appear in the gadget list "watched issues" on my dashboard.

So if I understand correctly, a workaround would be to add a second gadget on my dashboard to list all issues that are assigned to me ?

I would have duplicates across those two lists, so it would not be that handy :/ Any suggestion ? Thanks !

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events