Hey Muhammad and welcome to the community,
I don't think this is possible, as far as i'm aware there isn't even a way to get that type of data through the rest api.
You can get organization data but no site/product data.
You can however get some data from marketplace apps: https://developer.atlassian.com/platform/marketplace/license-api-for-cloud-apps/
Hope this helps,
Hi @Muhammad Yunus -- Welcome to the Atlassian Community!
What problem are you trying to solve with such a rule?
How frequently are you changing subscription plans? Jira automation seems like it is meant to reduce work with frequently occurring activities and to reduce errors in repeated work steps.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events