Forums

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

Do the Login & Logout events exist and are they exploitable with ScriptRunner?

ADyPo
Contributor
October 19, 2020

Environment : Cloud (Confluence, JSD, JSW)

Hello everyone,

The events I'm finding in the documentations are related to the Atlassian tooling (issues, pages, etc.). 

I can't seem to find the answer so here is the question : can I use ScriptRunner to trigger an action on login / on logout

About the use-cases:

- For the login, I'm trying to exploit some custom SAML attributes that I'm receiving from an identity provider on login (I'm using SAML SSO).

- For the logout, I want to call an API to notify the identity provider that the user logged-out (there's no logout binding).

Thank you all in advance,

Regards,

Dylan

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Tessa Tuteleers
Community Champion
January 7, 2021

Hi @Jamil Rahimov , 

So the field should be read-only by all except users in the project role "Lead developer", right? 
And you mention it doesn't work on the edit screen. 
Your configuration looks okay, are you sure the mapping to project/issue type is correct? 

I have also encountered some problems with checkboxes still being editable on the view screen, even though you cannot edit it on the edit screen. There are a lot of mentions of this problem online. 
To counter this problem, I would propose deleting the field from the edit screen, and then add an all-to-all transition limited to the "Lead developer" project role to the workflow, with your Definition of Done field on the transition screen. 


I think there should be a more robust solution for field-level edit permissions, but I guess that's the best you can do at this point in time. 

Hope this helps, 

let me know If you have any more questions! 

  • Tessa
TAGS
AUG Leaders

Atlassian Community Events