Is it possible in Camunda to implement a variable to calculate the duration from a Task to another Task the duration

Hi @Othshine

If you’re using the community version you could query the histroy to get all instance of each element and use the time stamp to make the calculation.

I you’re using the enterprise version it’s a little easier, you can use Optimize to make the calculation for you.

1 Like

Hi @Niall,
Thank you for your answer,
I’m using the community version ,is there a documentation on how to implement the query ?
Thank you in advance

The best place to start would be here:

That will show you all of the rest calls that you can use to get histroy info from the engine.