Copying log work from one issue to another issue in different project with link is derived by

mummareddy supriya
Contributor
October 25, 2024

 

 

I am working on one project so i have created a task (Task-1) in Two project area and another task (Task-2) in BMW project area. The information in both the Task remain same such as Title, Description etc.

I am logging hours for 3d in Task-1, now i want the same log hours to be updated automatically in Task-2. Because each time when i work on the one program i don't want manual effort to log hours in both the task.

Is it possible Using Automation rules or is there any other way .If any knows the solution please guide me here.

Thanks in advance

1 answer

0 votes
Richard October 25, 2024

I believe you should be able to achieve the results you seeking, but it may require addition of a field to act as a key to link both of the issues, unless you are already linking the issues with something such as 'clones' or 'cloned by.'

You will also need the Scriptrunner Add-on (or another that can achieve the same result) to build an 'issueFunction in linkedIssuesOf' type query to find the linked issue you want to update.

The automation rule logic would follow something like this:

  1. Trigger: When issue Task-1 in project TWO logged hours are updated
  2. Create Variable and store the value of logged hours in the variable using smart value for that field
  3. For issues linked to Task-1 with the cloned by link type
    1. Edit field value for logged hours on Task-2 with the variable created in step 2
Richard October 25, 2024

You could also create an automation rule that clones task-1 from project TWO to project BMW as a first automation rule, and then use the automation rule above to automate updating the hours. 

That way you would only be maintaining one record and the other wouldn't need to be touched.

mummareddy supriya
Contributor
October 27, 2024

@Richard I tried with above mentioned points with automation rules and listeners but both methods are working .is there any alternative approach please suggest  me

copy.PNGcop.PNG

Richard October 28, 2024

Are you able to change the project restriction in the rule details section or expand the scope?

As an alternative option, you may be able to leverage the Jira API. In your Jira instance, do you have access to generate an API token? 

mummareddy supriya
Contributor
October 29, 2024

yes,i'm able to change the scope to multiple project,then i tried it .it showing success in audit logs but its not copying the worklog from one issue to another

Richard October 29, 2024

Can you provide more detailed screenshots of your automation rule?

I am trying to understand if you are trying to copy over a field value

- or if the logs of the issue are tracked automatically and you are trying to bring over the logged time.

Suggest an answer

Log in or Sign up to answer