Hey Pranjal!
When ScriptRunner for Confluence was still available, this was a way to accomplish this:
https://answers.atlassian.com/questions/191994
Sadly ScriptRunner for Confluence is no longer available, and there's not currently a built-in function to achieve the same thing.
That said, there is a ticket in for a feature that incorporates this:
https://jira.atlassian.com/browse/CONF-18160
I suggest that you vote and/or comment!
Good luck!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.