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
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}/notifyI hope it helps.
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.