Hi Team,
We added the "Assignee Issue" JMWE post function, and it has condition
Hi @Lakshmi CH
You'd want to add something like {{currentUser.accountId}} != john's account id
Variables in Nunjucks Templates - JMWE for Jira Cloud - Confluence
This would be the user actually doing the transition and not the assignee.
Hi @Shawn Doyle - ReleaseTEAM ,
Thank you for your quick resonse. I tried both methods, but it's still assigning to the exceptional user who transitioned the ticket
(issue.parentObject.issueType.name == "ABC" || issue.parentObject.issueType.name == "XYZ") && (!issue.parentObject.get("customfield_39060")) && (currentUser.name != "john@xxx.com")
and
(issue.parentObject.issueType.name == "ABC" || issue.parentObject.issueType.name == "XYZ") && (!issue.parentObject.get("customfield_39060")) && ( {{currentUser.accountId}} != "john@xxx.com")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
currentUser.accountId would be a series of numbers and letters like "3b10a2844c30165700abc42c"
the currentUser.name wouldn't be an email address it would be the display name
The email address would be under currentUser.emailAddress However, I would use the currentUser.accountId as it's guaranteed to be unique.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Shawn Doyle - ReleaseTEAM ,
We are on data center, and we use email id as username.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.