Forums

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

How to give condition in Formula in Structure for Assignee

Sanjivani Wayal
Contributor
July 13, 2023

Hi,

I am trying to retrieve Value by giving condition for Assignee column in Structure but it directly goes in Else , The Asignee's are part of Groups -

 

with FORMAT_CAPTION(color, caption) = (
""":panel[$Caption]{backgroundColor=$color color=white}"""
If Assignee = 'membersOf("ABC_CustomerEdit")' :
FORMAT_CAPTION('Green', '**ABC**')
Else :
FORMAT_CAPTION('Green', '**XYZ**')

It directly goes in Else condition and prints XYZ , wanted to know What is wrong with above If condition

1 answer

1 accepted

2 votes
Answer accepted
Evgenii
Community Champion
July 13, 2023

Hi, @Sanjivani Wayal 

Try this, slightly refactored formula. I used JQL to check IF condition

with FORMAT_CAPTION(color, caption) = (""":panel[$Caption]{backgroundColor=$color color=white}"""):
IF JQL{assignee in membersOf("ABC_CustomerEdit")} : FORMAT_CAPTION('Green', '**ABC**')
ELSE : FORMAT_CAPTION('Green', '**XYZ**')
Sanjivani Wayal
Contributor
July 16, 2023

Hi @Evgenii 

It worked Thank you so much...

Like # people like this

Suggest an answer

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

Atlassian Community Events