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

1 vote
Answer accepted
Oliver Siebenmarck _Polymetis Apps_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events