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?
Any help would be appreciated because I really don't want to own ALL these pages. :)
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
Yes, I am using this:
"ownerId": {{initiator.accountId}}
And the owner remains as me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.