Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

User lose signed-in in new Thread

Christian Schulze December 15, 2016

Hello,

my problem is that I start a Runable as a new Thread and use 

this.authenticationContext = ComponentAccessor.getJiraAuthenticationContext();
this.user = authenticationContext.getLoggedInUser();

in the Constructor. But when I start the Thread my loggedInUser loses his signedIn Status?

Can anyone explained this to why this happen? My first Idea is something with ThreadLocal, but how can I solve this?

regards

 Chris

 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Christian Schulze December 16, 2016

Hello,

I found a solution for the Problem. You have use the SAL Service explained in 

https://answers.atlassian.com/questions/45394260

regards

chris

Volodymyr Krupach
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 17, 2016

Hi Christian,

Thank you for sharing!

TAGS
AUG Leaders

Atlassian Community Events