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


The values used below are created for the example only. Please provide real input from your instance for making the use case realistic.

Issue key

Set it manually using the expression editor as follows:

ISSUE-1

Start time

Set it manually using the expression editor in "General" parsing mode as follows:

%{dateTimeToString({system.currentDateTime}, "YYYY-MM-DDTHH:MM:00.000+0000", RUN_AS_LANG)}

Time spent in seconds

Set it manually using the expression editor in "Basic text" parsing mode as follows: (meaning 5 hours)

18000

 

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.





If you still have questions, feel free to refer to our support team.