Help with fixing errors in trigger.

Леонид January 27, 2025

Web Request URL:

https://123.atlassian.net/rest/api/2/issue/{{issue.key}}/worklog

The URL(https://123.atlassian.net) is correct

Request Method:

POST

Web request body:

{ "timeSpent": "1d", "comment": "Automatically adding time at 17:00", "started": "{{now}}" }

Content-Type header: application/json

 

 

Authorization header: (Basic ...)Снимок экрана 2025-01-27 143858.jpgСнимок экрана 2025-01-27 143935.jpg

When starting, it writes errors in the log:

Снимок экрана 2025-01-27 144448.jpg

2 answers

2 accepted

2 votes
Answer accepted
Bill Sheboy
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.
January 27, 2025

Hi @Лёня Криволапов -- Welcome to the Atlassian Community!

The rule you show has

  • a Scheduled Trigger (likely without any JQL)
  • a Lookup Issues action
  • a Send Web Request, trying to reference {{issue.key}}

 

But there is no issue available to use, only the results of the lookup, and so the URL for the request does not work.

And...the reason you cannot see the Log Work action is the same reason: it is currently displaying the Compatible actions, and without an issue that is not compatible.

There are two ways to solve this: 

  1. remove the Lookup Issues action and add the JQL to the trigger, using the Log Work action to add the time
  2. remove the Lookup Issue action and add the JQL to a Branch on JQL, using the Log Work action

 

Kind regards,
Bill

Леонид January 27, 2025

Thank you very much for your help.

Like Bill Sheboy likes this
1 vote
Answer accepted
Tuncay Senturk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 27, 2025

Hi @Лёня Криволапов 

Your configuration seem fine at first glance. Is there a reason you don't use the Log Work action instead of making a web request?

Леонид January 27, 2025

I'm just learning automation in Jira.
I was recommended Log Work but I just can't find it.
image.png

Tuncay Senturk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 27, 2025

I see. Is Time Tracking enabled for the project? If this feature is disabled, you may not be able to see the option to log work.

Леонид January 27, 2025

Yes, it is includedimage.png

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