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
atlassian, atlassian community, loom ai, atlassian loom ai, loom, atlassian ai, record recaps of meetings, meeting recaps, loom recaps, share meeting recaps,

Loom’s guide to great meetings 📹

Join us to learn how your team can stay fully engaged in meetings without worrying about writing everything down. Dive into Loom's newest feature, Loom AI for meetings, which automatically takes notes and tracks action items.

Register today!
AUG Leaders

Atlassian Community Events