The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

jira expression

Nodar Vardiashvili
Contributor
April 23, 2020

Hi,

I want to use a condition with Jira expression.

I want something like this: if the user is current reporter or user is accountid can transition this. i write this but its not working   

user.accountId == issue.reporter.accountId || User.accountId == 1000a0000a000a000

 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Oliver Siebenmarck _Polymetis Apps_
Community Champion
April 23, 2020

Hi Nodar,

You were almost there, here is the expression that should work as you want:

user.accountId == issue.reporter.accountId || user.accountId == "1000a0000a000a000"

The only two differences are that a) user must always be written in lower case and b) that the accountId-string must be in quotation marks.

Hope that helps,

 Oliver

Nodar Vardiashvili
Contributor
April 23, 2020

thank you, it's working

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events