Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Need assistance writing a web request that executes a CQL query

Robert Wen_Cprime_
Community Champion
February 24, 2026

I need a second pair of eyes for this.

I'm creating a Jira automation that creates Confluence child pages.  To get the ID of the parent page, I'm executing a web request that calls a CQL query

The URL is: https://<site>/wiki/rest/api/content/search?cql=title="{{issue.summary.urlEncode.replaceAll("\+","%20")}}"%20AND%20space.key=<key>

When testing the web request configuration, I'm getting "invalid web request URL". The URL string looks like: https://<site>/wiki/rest/api/content/search?cql=title="Feb%2017%20test%202"%20AND%20space.key=TEST

This string looks valid to me.  So, what am I missing?

Thanks in advance!

3 answers

0 votes
Martin Bayer _MoroSystems_ s_r_o__
Community Champion
February 24, 2026

Hi @Robert Wen_Cprime_ , when I try to open URL against my testing environment, it works fine.
Do you "log" url somewhere? Are you sure that "https://<site>/wiki/rest/api/content/search?cql=title="Feb%2017%20test%202"%20AND%20space.key=TEST" is really used?

Robert Wen_Cprime_
Community Champion
February 24, 2026

I haven't enabled this rule yet.  I'm testing the web request configuration and that's the string that's returned as part of the error message.

Martin Bayer _MoroSystems_ s_r_o__
Community Champion
February 24, 2026

I would suggest you to use "Log" action and log the

  • https://<site>/wiki/rest/api/content/search?cql=title="{{issue.summary.urlEncode.replaceAll("\+","%20")}}"%20AND%20space.key=<key>

and try to check logged value

Robert Wen_Cprime_
Community Champion
February 24, 2026

Do you have what I would use to capture the URL used on the request to log?  I see the smart values to include for responses, but none for the actual request itself.

Robert Wen_Cprime_
Community Champion
February 24, 2026

I'm guessing save as a variable and use the variable on the web request itself?

 

0 votes
Marc -Devoteam-
Community Champion
February 24, 2026

Hi @Robert Wen_Cprime_ 

I think you just need to specify the space key like:

https://<site>/wiki/rest/api/content/search?cql=title="Feb%2017%20test%202"%20AND%20space=TEST

The .key is not required

Robert Wen_Cprime_
Community Champion
February 24, 2026

Let me try that.  Thanks!

 

Robert Wen_Cprime_
Community Champion
February 24, 2026

same error

0 votes
Florian Bonniec
Community Champion
February 24, 2026

Hi @Robert Wen_Cprime_ 

 

Is it not  https://<site>/wiki/rest/api/v2/content/search?

 

Regards

Robert Wen_Cprime_
Community Champion
February 24, 2026
Robert Wen_Cprime_
Community Champion
February 24, 2026

nope.  Same error.

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events