Hi Team,We added the "Assignee Issue" JMWE post function, and it has condition
Hi @jira_admin_cu
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")
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.
Hi @Shawn Doyle - ReleaseTEAM ,We are on data center, and we use email id as username.
It looks like you're new here. Sign in or register to get started.