Automation to create a Confluence page - how to make the initiator the owner of the Confluence page?

Allie Stewart
Contributor
March 4, 2024

Hi,

I have an automation that creates a confluence page from a software issue, and it's working really nicely.

But, I just today noticed that when this automation runs, I, the Jira Admin, am the page owner.  I should not to be the owner of that page. I want the person who triggered the automation to be the owner of that page.

Screenshot that might help explain:

1. I noticed that it shows the connection as me, so maybe that's why?

2. Or perhaps I can include a page.owner = initiator here?

confluence automation owner.png

Any help would be appreciated because I really don't want to own ALL these pages.  :)

1 answer

0 votes
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.
March 4, 2024

Hi @Allie Stewart 

Have you tried passing the ownerId parameter, as described here: https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page/#api-pages-id-put

I am not using Confluence automation rules and so cannot test this to confirm if it works as documented.

Kind regards,
Bill

Allie Stewart
Contributor
March 13, 2024

Yes, I am using this:

"ownerId": {{initiator.accountId}}

confluence page error.png

And the owner remains as me.

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.
March 13, 2024

Hmmm...some additional things to check:

If you write the {{initiator.accountId}} value to the audit log, does it contain the value you expect?

Who is set as the actor for this rule?

I found this defect in the public backlog, which seems to indicate some Confluence automation triggers do not detect the initiator correctly.  The above tests will confirm if that is the case for your rule.  https://jira.atlassian.com/browse/CONFCLOUD-76532

Allie Stewart
Contributor
March 14, 2024

Great ideas.  Can't believe I didn't think right through those easy diagnosis steps.  I got lost in the weeds!

The actor is Automation for Jira.  I can't use {{issue.initiator}} as actor.

I'm also going to use initator.displayname to see if that resolves.

Thank you again for you help.

Like Bill Sheboy likes this
Allie Stewart
Contributor
March 19, 2024

In my testing, I see that the initiator is correct.  It's showing the ID and name correctly in my logs.

But, the error is still there and it makes ME the owner still.  Argh!

 

confluence automation owner audit log.png

confluence automation owner is still me.png

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.
March 19, 2024

Argh, indeed!

I am out of ideas on this one.  I suggest submitting a ticket to Atlassian Support at this link, providing them a link to this question thread for context: https://support.atlassian.com/contact/#/

You're the site admin for a paid license and so you will permitted to do that.  When you hear back from them, please post what you learn to benefit the community.  Thanks!

Suggest an answer

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

Atlassian Community Events