Forums

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

How do I detect automation being executed by a playbook?

Automation
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!
July 9, 2025

When we create an automation that uses the action component "Log output to playbook" we get errors when the automation is triggered outside a playbook. Is there a way to test the source of the trigger and branch to prevent this step if not triggered in a playbook?

2 answers

0 votes
Automation
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!
July 9, 2025

1. company-managed

2. step2.png

3. see above

4. step4.png

5. The issue happens when the automation is triggered from the automation button outside of the playbook. This automation can be used in multiple ways. The rule is configured to alert on errors which is triggered when used outside the playbook.

0 votes
Marc - Devoteam
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.
July 9, 2025

hi @Automation 

Welcome to the community.

Whenever you ask for help with an Automation Rule it will help us to help you if you provide:

1. what type of project is this (e.g., company-managed, team-managed, etc.), 

2. images that show your complete rule.

3. images showing the details of any relevant actions/conditions/branches.

4. images showing the Audit Log details for the rule execution.

5. Explain where the issue is.

These questions are not for not willing to help, but to have community members understand on how automation works.

Marc - Devoteam
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.
July 9, 2025

HI @Automation 

What are the details of the web hook action and the log action

Like John Funk likes this
Automation
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!
July 9, 2025

The webhook sends a few fields to an external product and waits for a response.
The log action is a simple set of key-value pairs along with the name of the initiator.

Like John Funk likes this
Marc - Devoteam
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.
July 10, 2025

@Automation  

Can you show the details of the log action.

Playbook output can't be jst anything, see the related documentation: https://support.atlassian.com/jira-service-management-cloud/docs/run-a-playbook-and-view-outputs/ 

Automation
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!
July 10, 2025

 I am not sure what you are asking. I posted the entire log of the action. I am not sure what your link has to do with the question. There is no issue when the automation is run from the playbook. The issue occurs when the same automation is triggered outside the playbook, specifically from the automation button on the right panel of the issue.

Marc - Devoteam
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.
July 10, 2025

Hi @Automation So if you execute this outside the playbook, then the playbook is not in play and the log action will provide an error as the playbook wasn't used in the execution.

Then you are sending a web request, to get log information back you would need to use a Log action in the rule.

Use the smart value {{webResponse.body}} to get information from the made web request call.

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