Forums

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

How to run automation when create via API

Naoki
Contributor
May 21, 2025

Hi there

 

I created automation to add comment when work item created.

I would like it to run automation only when created from Slack, but it does not.

Does anyone know how to do this?

 

I believe we can handle this in IF condition if we can get "via XXXX".

But I don't know how to do that.

I consulted the documentation for smart value, but could not find it

 

Thanks

01.png

2 answers

1 accepted

4 votes
Answer accepted
Bob Dalm
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.
May 21, 2025

Hi @Naoki , 

Use a smart value condition on {{properties."request.channel.type".value}}

image.png

Jack Brickey
Community Champion
May 21, 2025

Oh, that is interesting. I want to try this.

Naoki
Contributor
May 21, 2025

Hi @Bob Dalm , thanks for reply.

AWESOME ANSWER! 

I used the smart value, it works fine!

Thank you for your help.

Regards 

01.png02.png

Like Bob Dalm likes this
1 vote
Jack Brickey
Community Champion
May 21, 2025

Hi @Naoki , I haven't investigated this in a while but I seem to recall that there was some text in the Description that indicated a work item being created from slack. In your image I note "work item from slack but that may simply be something you entered during test? If there is some text that Slack creates then you could use in a condition.

Suggest an answer

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

Atlassian Community Events