Forums

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

Change Confluence page owner Jira automation

Asier Vadillo
Contributor
November 21, 2025

Hi everyone!

I am trying to create a page in confluence and changing the owner to the initiator of the rule.

I think the way to do it is making a web request to the Confluence API with the created page id. I have this request:
I know the authorization, endpoint ... are good because just changing {{initiator.accountId}} with any user id changes the owner.webrequest.png

Anyone has any idea why it is not working? If logged the smart value returns the initiator id just fine.

The error that appears is:
Screenshot From 2025-11-21 09-20-42.png

Thanks beforehand!

3 answers

2 accepted

3 votes
Answer accepted
Asier Vadillo
Contributor
November 21, 2025

Hi all!

Update, even changing the smart value {{initiator.accountId}} for {{issue.reporter.accountId}} works.

Im out of ideas!

Asier Vadillo
Contributor
November 21, 2025

I have found a workaround, this seems a jira problem.
Creating a variable with the same smart value between """ and then using the variable works:
Screenshot From 2025-11-21 13-38-57.pngScreenshot From 2025-11-21 13-39-30.png

1 vote
Answer accepted
Bill Sheboy
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.
November 21, 2025

Hi @Asier Vadillo 

The symptom you observed is likely caused by one of the many racetrack timing problems that can happen in rules.

Specifically for your case, in the Send Web Request action's Custom Data, the content may be validated before it is fully evaluated to populate the smart values.  And, this is why using the Created Variable helped: the expression was fully evaluated before usage in the later action.  When there are several things in a dynamic JSON expression, I recommend creating the entire thing in a variable, perhaps named varJson, and then using {{varJson}} as the action's custom data.  This can also help diagnose JSON syntax problems.

 

Two other things I note in your rule which could cause problems:

  • Also in the JSON expression, you use the smart value {{createdPage.title}} and that could contain characters which break the JSON when it is passed.  I prevent that, consider adding the jsonEncode function to the end, such as with:
"title": "{{createdPage.title.jsonEncode}}",
  • In the Send Web Request action you show, the option to "Delay execution of subsequent rule actions until we've received a response..." is disabled.  Even when there are no following rule steps, I recommend selecting that option to ensure the audit log correctly captures any errors.

 

Kind regards,
Bill

0 votes
Tomislav Tobijas
Community Champion
November 21, 2025

@Asier Vadillo So... I've spent an hour now on this and I'm not sure what's going on 👀

I managed to change the owner in the following scenario:

  • Hardcoded title
  • Hardcoded body storage value
  • Hardcoded owner ID (tried switching back and forth between two accounts)

2025-11-21_10-57-42.png

Note that I've also noticed that changing owner seems to fail when new owner is regular Confluence user/collaborator, and that it works if I set that user as space admin (but now I remembered that I have like billion authorization tokens so that might be the issue there as I could be using the one from account that could/couldn't change page owner).

Hope this could help a bit (I might be able to spend some additional time polishing this in the upcoming days) 🤔

Asier Vadillo
Contributor
November 21, 2025

Hi @Tomislav Tobijas,

Thanks for your reply. Unfortunately this doesn’t help in our case because we use a template, so deleting the page content isn’t an option. I really appreciate the time you took to respond.

I’m in the same situation as you — I don’t understand why it isn’t working.

Regards

Like Tomislav Tobijas likes this

Suggest an answer

Log in or Sign up to answer