Script Runner Macros passing the URL Parameter

Rauzan Fikri December 5, 2023

Hi All,

I want to passing the URL parameter in the confluence page where the macros is called.

Any idea or suggestions?

2 answers

0 votes
ozannetwork
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 5, 2023

 @Bobby Bailey 

 

Hi it's me with different account

e.g. I have url something like viewpage.action?pageId=21234&status=All&pic=12332

 

Then inside the page I implement the macros where inside the macros I want to read the URL parameter. Value  (status and pic)

0 votes
Bobby Bailey
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.
December 5, 2023

Hi @Rauzan Fikri , 

Thank you for raising a question! I am a little unclear on your requirement, could you go into a little more detail about what it is you are trying to achieve?

Kind regards, 

Bobby

Rauzan Fikri December 5, 2023

@Bobby Bailey 

e.g. I have url something like viewpage.action?pageId=21234&status=All&pic=12332

 

Then inside the page I implement the macros where inside the macros I want to read the URL parameter. Value  (status and pic)

Bobby Bailey
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.
December 6, 2023

Hi @Rauzan Fikri does this value need to be dynamic? If it is a static URL, you should just be able to pass it as a string parameter, in the script read the string and use the value. 

Then, when the macro is entered in the page, you can just copy and past the URL into the parameter field. 

Kind regards, 

Bobby

Rauzan Fikri December 7, 2023

Hi @Bobby Bailey 

 

the value for URL parameter status and pic is dynamic. where the value will be use inside the script runner macros

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events