Question: what is ijma and qiyas?
Answer: In such cases, those people with extreme knowledge on Quran and ahaadith, extract the ruling for a particular situation. This is called qiyas. After the time of prophet Muhammad saws, and during the khilafat of 4 great khulafa, whatever qiyas is done and accepted by all sahaba is called ijma.