You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I need a help with xml part of my script that I use to automatically make Confluence page when a Jira issue is created.
I am using Scriptrunner for Jira Listener.
Here is my code for macro that is working:
But when I want to run for example macro to make a content lablel I don't know how to make it work.
Here is source code that makes Confluence when I write macro directly on Confluence page:
<ac:structured-macro ac:macro-id="cc35373a-d1f9-4dc4-8ecd-5f289c179b5b" ac:name="contentbylabel" ac:schema-version="3">
<ac:parameter ac:name="cql">label = "ivica"</ac:parameter>
So the problem is when I put this part of code label = "ivica" in scriptrunner. Then he gives error that variable is not defined. I tried different solutions with qutation mark but it doesn't work.
Have you tried to escape the label string like this:
'ac:parameter'('ac:name': "cql", "label = \"ivica\"")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.