I want to auto update a work attribute in Tempo using Jira automation

Mohammed_Kagzi
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 11, 2025

I want to achieve the following via Jira Automation:

I want to integrate Jira and Tempo. So basically there is a work attribute in Tempo called SR&ED. I have added a custom field in Jira where I can select SR&ED as Yes. I want this Yes field in the Jira ticket to check mark the SR&ED in Tempo as true automatically when I log hours for this ticket in Tempo.


This is my payload request:

{ "attributes": [ { "key": "_SR&ED_", "value": true } ], "startDate": "{{now.format("yyyy-MM-dd")}}", "authorAccountId": "{{issue.fields.assignee.accountId}}", "timeSpentSeconds": 3600 }

This is the endpoint I am using from Tempo

method: PUT

https://api.tempo.io/4/worklogs/_SR&ED_

error I am facing: 

 

{"errors":[{"message":"Worklog cannot be found"}]}

Not sure how to proceed here. Can someone please help me?

1 answer

0 votes
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.
March 11, 2025

Hi @Mohammed_Kagzi -- Welcome to the Atlassian Community!

Your expression has nested double-quotation marks for the startDate attribute.

Rather than using the format() function, try the inline function, jiraDate format instead, or use format() without the outer quotation marks, adding them with the asJsonString function.

{
"attributes": [
{
"key": "_SR&ED_",
"value": true
}
],
"startDate": "{{now.jiraDate}}",
"authorAccountId": "{{issue.fields.assignee.accountId}}",
"timeSpentSeconds": 3600
}

 

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events