Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Jira Macro C&P

Hi,

I am currently writing a little plugin for my IDE which exports release notes in a given format so I can simply paste it to Confluence and have it publicly available. My question is if there is a format which can be parsed and recognized into a jira macro when pasted?

My attempts so far: 

* https://company.jira.com/browse/PRJ-124

* {jira key=PRJ-124}

The second way assumes that there is possibility to set a macros properties in some kind of key value way, which would be best and most flexible I guess.

 

 

1 answer

Hi @blatzfab How are you doing?

I am not sure there is a way to do it directly into the Editor.

But you could generate you text in the Confluence Markup format and then include it in the page going to Insert > Markup and pasting it.

This is what a Jira Macro looks like when using Confluence Markup:

{jira:server=Jira|serverId=WWW-WWW-WWW-WWW|key=ABC-678}

To confirm these parameter values for your installation, insert a Jira Macro in the page as usual and go to View Storage Format. There you will see the parameter names and values for the macro.

Hope this helps!

Hey @Cristiano Oliveira ,

Doing fine :), hope you as well.

Thanks a lot, this helps me already a bunch. The only issue now is that if I paste multiple lines of this at once:

{jira:server=Jira|serverId=WWW-WWW-WWW-WWW|key=ABC-678}
{jira:server=Jira|serverId=WWW-WWW-WWW-WWW|key=ABC-678}

 The conversion into the macro does not work anymore

Like Cristiano Oliveira likes this

hI @blatzfab !

I am using Confluence 6.12.2 and Jira 7.13.0 and the conversion worked normally. these two lines you put became two macros.

Maybe you could use only one macro with a JQL query like this:

{jira:server=Jira|serverId=WWW-WWW-WWW-WWW|jqlQuery=key in (PRJ-17520,PRJ-16691)}

Hope this helps!

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

335 views 23 8
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you