i'am trying to copy the the original estimated value to the time logged and put zero on time remaining when the sub-task go moved from the status to do and in progress to done but is not working well, i tried to make it with the json code but it is getting a erros of parse, i don't know if is my rule or something else, how could i solve this ?
Automation screenshot
JSON CODE
"update": {
"worklog" : [
{
"add": {
"timeSpent" : "{{issue.timetracking.remainingEstimate}}",
"remainingEstimate": "0"
}
}
]
}
Error screenshot
Hello @Lucas Silva Dantas Abrantes
An issue can have multiple worklog entries.
Do you want to actually edit an existing worklog entry, or add a new worklog entry for the time that was remaining on the issue? I think you want to do the latter (add a new worklog entry).
With the Edit Issue action you would be trying to edit a pre-existing entry, but what you have would not be the right way to do that anyhow, as it would not know which pre-existing worklog entry you are trying to edit.
If you want to simply add another worklog entry for the amount of time remaining, use the Log Work action.
In this case you don't need to explicitly set the Remaining Estimate field to 0. Logging work automatically resets the Remaining Estimate to (Remaining Estimate - Time Spent). Since you are setting Time Spent to the value that was in Remaining Estimate, the new value of Remaining Estimate will be zero.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i got a similar case, but what i want is to "copy" the time spent (registered hours) to the Original Estimation, but this just in the case of the O.E = 0.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.