Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

I want to write a user macro in confluence which will display url of a change ID

I want to write a user macro in confluence which will take input of a change iD and the output will be a clickable url to the change ID. What we need to do is just append the change ID text to a static string and display it as URL. Can someone please provide the code and logic to do that?

1 answer

1 accepted

1 vote
Answer accepted
Dominic Lagger Community Leader Apr 20, 2021

Hi @Soham Das 

This should work, if I understand you correctly :) 

Feel free to adapt it

## Macro title: My Macro
## Macro has a body: Y or N
## Body processing: Selected body processing option
## Output: Selected output option
## Developed by: My Name
## Date created: dd/mm/yyyy
## Installed by: My Name

## @param change:title=Change ID|type=string|required=true|desc=Description here

<a href='LINK $paramchange'>Link Text</a>

Regards, Dominic

Hi Dominic,

Can you please tell how to take in the input(i.e the change id)?

Dominic Lagger Community Leader Apr 22, 2021

Hi @Soham Das 

What you mean by how to take the input? 

The input is the parameter. You have to set the parameter in the macro on the page, where you use the macro. 

Sorry Dominic,

I got it. The given template works fine. Thank you 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

🥓🙅🏻‍♀️ Meet-less May Badge!

Hello Confluence Community!  What if i told you that you could have a healthier life and be 100% meet-less? This month, we're promoting a healthy, balanced work diet with Confluence. (Read m...

568 views 4 24
Read article

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