Forums

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

CurrentUser() but for the user ID?

Jason Moerbe March 17, 2014

I know how to use CurrentUser() in gadgets to get info specific to the currently logged in user. But is there a similar variable that is specific to the currently logged in users ID rather than just their screenname? I have not been able to find that. I ask because on the activity stream gadget, when setting it to a specific user, you get different information when entering the screen name vs. the ID.

If you enter the screenname or CurrentUser(), the activity stream populates, but does not include everything like when the person inters an issue.

if you use the user ID, you get the more comprehensive list of activity.

1 answer

1 accepted

0 votes
Answer accepted
EddieW
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.
March 22, 2014

Are you using activity-streams acrosss different tools? This sounds like an issue in the Actitvity Stream plugin, unless the different tools have different backend users.

Jason Moerbe March 23, 2014

We have JIRA Agile, Confluence, Bitbucket, and HipChat. But its the same user base acroos those tools.

Jason Moerbe March 23, 2014

So what I understand from your answer is that using a person's user NAME in a gadget filter is expected to return the same information that person's user ID intead?

EddieW
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.
March 24, 2014

@Jason- use the 'continue discussion' link to keep this convo in thread, and not as new answers :).

Yes, I would expect currentUser() (which is an object containing both username and id) to work across all tools if the user info was identical (i.e. using Crowd and all our apps streams are integrated), and your mention of BitBucket makes me think that users commiting to git are only tied to their user IDs, you may need to setup aliases, but I would think that the activity stream would only be missing, not JIRA tickets.

I am more suspecting this to be a bug/issue, potentially related to https://jira.atlassian.com/browse/JRA-35013- I would check for related knowledge articles, and if nothing lines up, submit a support ticket.

Jason Moerbe March 24, 2014

Thanks for the advice!

EddieW
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.
March 26, 2014

Sure thing @Jason!

If you do find a resolution (yourself or through support) please come back and let us know!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events