I want to know the number of issues which spent a total time of more than 30 days.
For example: If I have issue #1 with the following life cycle,
Status Changed to in progress : 2017-01-01
Status Changed to testing : 2017-01-21
Status Changed to in progress : 2017-01-21
Status Changed to closed: 2017-01-31
The number of days #1 spent in In progress state is 20 + 10 = 30 days, so this is one of the issues I am interested in.
I want to do a JQL to fetch this issues. CAN THIS BE DONE IN THE REST API ? and How?
Thanks