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?
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 @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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.