I'm working on a custom script to import tickets from another system to Jira.
That other systems has a field "actual effort". It's basically the amount of days someone spent on that ticket.
In Jira this could be translated to a worklog entry. I could make one via the script but there is no relevant date or worklog author.
Hence my question: is there a way to add the total amount of logged work on an issue without worklog entry? Or is "Logged Work" directly calculated from the worklogs.
In this example "Logged" is based on the difference between "Estimated" and "Remaining". But I can not find a way to set this programmatically.
Anwsering my own question: it is possible by ising
issue.setTimeSpent(myLong)
As you mentioned, you are correct.
You need a worklog entry. Logged work is indeed calculated on the worklog entries.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Marc,
Thanks for your answer.
In the meantime I found a solution:
I missed this yesterday but there seems to be a method to set the time spent without worklog:
issue.setTimeSpent(myLong)
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.