Is there any way I can create a card in "jira" with a scheduler from a confluence macro?

I’m trying to create a macro in which the user puts a range (example: weekly, monthly or annually), and the project it is in jira, and the macro creates a card in jira automatically according to the range it has put. But I couldn’t integrate jira and confluence, does anyone know any way?