How to measure complexity of an issue in any open source project

Hello Geeks,

I am currently working on mining different open source repositories from GitHub to find the complexity of an issue. But most of the open-source projects have no specific metric to measure it, could anyone please help how to calculate it? We are considering issue type, completion time, and no of files changed in a commit for that issue. Is it okay to consider?