On this page
Use case
This use case considers a situation when a Jira user wants to automatically log time to a specific issue by setting the starting time and the duration.
Configuration
Add the Execute remote action post function to the desired transition or create a new transition.
Create remote action
Select the action to get started. Choose Log work.
Select connection
Choose an existing connection to the Jira instance or create a new connection.
Customize your action
Set action parameters
Issue ID or key
Set it manually using the expression editor as follows:
Issue-1
Start time
Set it manually using the expression editor as follows: Choose the parsing mode "Advanced text" and enter the following expression
dateTimeToString({issue.updated}, "YYYY-MM-dd'T'HH:MM:00.000+0000", RUN_AS_LANG)
Time spent in seconds
Set it manually using the expression editor as follows: Choose the parsing mode "Advanced text" and enter the following expression (meaning 5 hours)
toString(5*60*60)
From the used template, you can retrieve the Worklog ID and save it in any field.
Optionally, you can use the Update issue fields (optional) section to save the response body or parts of it into some field.
Related use cases
Use case No content found.
If you still have questions, feel free to refer to our support team.