Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

User Macro and possibilities

Filip Gawlas October 21, 2019

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

1 answer

0 votes
Dominic Lagger
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 21, 2019

Hi @Filip Gawlas 

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events