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
Ravi Sagar _Sparxsys_
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.
January 3, 2021

Hi @inna grin 

I guess you are using the post function where the send email will use the Jira email templates.

What you can try is creating a listener and use the script here. You will also find this script in the examples. This script should let you send an email with custom subject and body. The mail will not be sent if the changes are made by the same person.

It is using the following REST end point also mentioned here.

POST /rest/api/3/issue/{issueIdOrKey}/notify

I hope it helps.

Ravi 

TAGS
AUG Leaders

Atlassian Community Events