Forums

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

If statement to check if participant is an customer/agent

Thomas Zuiker
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 4, 2020

Hi,

For our usecase we have some service desk issues with 2 request particiapnt. One of them is an agent an one of them is a customer.

When this type of issue is created another linked issues needs to be created with the customer as reporter. Depending on if the customer is already in our system it gets the first or second spot in the 'request participant list'.

We use automation for jira so i perform an if /else block. However i cannot get it to work.

I evaluate : 

Naamloos.png

This statement is always evaluated as false even when i check it is true.

Also tried "customer" also didnt work.

What am i doing wrong?

 

Thanks

2 answers

0 votes
Alexander Pappert
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.
March 4, 2020

Or you can use JQL in the IF block

lastaccounttype=customer

 

image.png

0 votes
Alexander Pappert
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.
March 4, 2020

can you try

{{issue."lastaccounttype"}}

or

{{issue.customfield_10618}}

Thomas Zuiker
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 5, 2020

Thank you for your reply. However it doenst work.

customfield_10618 is a list so i use last/ first to distinguish between the two entries. 

See screenshot of the rest api

accountType is a subfield(?) on customfield_10618.

jql querry on accountType is not possible either.api.png

Suggest an answer

Log in or Sign up to answer