changes.mady.by.user Mazin Abubeker
Saved on Jun 28, 2021
...
<script> // Endpoint checks if authenticated user is part of smith group otherwise add and send email jQuery.ajax({ url: "/rest/scriptrunner/latest/custom/smithAutoMemberShipautoMemberShipMorganStanley", headers: { 'X-Atlassian-Token' : 'nocheck', 'Content-type' : 'application/json' }, type: "POST", dataType: 'text', data: JSON.stringify({ "email": AJS.params.remoteUser, }), success: function(text){ //console.log("Response: "+ text) window.location.replace("/site/sdc"); }, error: function(err){ //alert(err) window.location.replace("https://passport.theonevalley.com/"); } }); </script>