Hello all,
I have a task. At Confluence page, there is a table. After table update, automaticly (or button pressed) create new jira issue in servicedesk project with that table values.
I was looking for solution or something similar. Confluence can't do such complex task. Found out, scriptrunner could do it, but unfortunatly, we do not have it.
Then I learned about user macros. It is looking quite promissing, but not easy at all for me.
So I want to ask, is it even possible to create such macro? Or I do not have to invest time to it.
Thank you so much for any help!
Best regards,
Filip
I'm a fan of user macros! And yes, in theory it should be possible.
If I understand you correctly, you want to have a button, which creates a JIRA item with some values.
So you need some HTML knowhow to create a button.
Then, in theory, you should get the content from the table (with javascript).
And at the end, you can make the REST CALL with your values to create the JIRA Item.
Here is an example, how to make a new Page in confluence with a user macro.
https://developer.atlassian.com/server/confluence/confluence-rest-api-examples/#create-a-new-page-jquery
Somewhere in the middle is an JQuery example. This you can adapt to create the REST CALL for JIRA or JIRA Servicedesk.
If you have some good knowhow in these areas, it should be possible for you.
At the end, I just want to say, I've never tried it, so it's all just theortic. :-)
If you managed it, let me know how you did it!
Regards,
Dominic
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.