Forums

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

Jira automation: Error creating Confluence page: Forbidden (403)

Gil Solomon September 16, 2024

Hello!

I created an automation rule to create a confluence page from template on a workflow status transition. The rule is running as my user, I'm an admin with full access to the confluence space as well as the templates.

When the rule is triggered it fails with 403 error and I cannot find any explanation for this nor when searching the community, google or GPT. Any help will be greatly appreciated.

Create page in Confluence
Error creating Confluence page:
Forbidden (403)
Screenshot 2024-09-16 at 10.20.42.pngScreenshot 2024-09-16 at 10.20.50.png

4 answers

2 votes
Vikrant Yadav
Community Champion
September 16, 2024

Hi @Gil Solomon  Welcome to Atlassian Community!

Are you able to create a page under this parent page from UI ? 

It seems that you don't have permission to create a page under the parent page, if you have permission create a page on R&D space. Give it a try from UI. If it's working from UI then it should work via Automation as well. 

Try to create page without Parent and template. Is it working? 

Thanks,

Vikrant yadav

 

 

Gil Solomon September 16, 2024

@Vikrant Yadav Thank you for your response.

I'm Jira admin and and there are no permissions issues in the UI. I can create all manner of pages anywhere in this space  - under Parent or in root, with\out template and all works fine.Screenshot 2024-09-16 at 11.32.56.pngScreenshot 2024-09-16 at 11.32.49.png

 

Like Vikrant Yadav likes this
Vikrant Yadav
Community Champion
September 16, 2024

@Gil Solomon Okay, In this case, try one more thing, delete and re-add the "Create Confluence page" action . If still not working, I suggest you to contact Atlassian support once. 

Gil Solomon September 16, 2024

P.S Automation rule fails even without parent and template.

Gil Solomon September 16, 2024

@Vikrant Yadav Thank you for your patience, I also tried that and everything else possible - this thread is now marked with "An Atlassian Support Engineer will review the post and respond on this thread within 2 business days." 

Like Vikrant Yadav likes this
Vikrant Yadav
Community Champion
September 16, 2024

You're Welcome @Gil Solomon ! 
I am not able to reproduce the same issue on my machine. So Sorry we can't help you out today. 

Hope Atlassian team will post answer soon! 

Like Gil Solomon likes this
0 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 16, 2024

Hi @Gil Solomon 

I tried to take a closer look here, but I'm not able to see a clear cause for this.  Typically a 403 error is an authorization problem, but from what you have posted here, I can't see why you'd be getting that error.  I created a support ticket on your behalf over in https://getsupport.atlassian.com/servicedesk/customer/portal/23/JST-1043345

If you can visit the customer portal, there is also an option within the portal to grant our support team data access.  While this is not required for us to troubleshoot the problem, it might be helpful for support to have this in order to access the site and recreate the problem there to better understand it.

Andy

Gil Solomon September 17, 2024

@Andy Heinzer 

Thank you fro stepping in, I visited the portal and allowed data access.

0 votes
Marc - Devoteam
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.
September 16, 2024

Hi @Gil Solomon 

Welcome to the community.

403 means that user that you used is not allowed to do that.

Can you re-check your credentials?

Gil Solomon September 16, 2024

@Marc - Devoteam Thank you for your reply.

The rule is running as my user, I'm an admin with full access to the confluence space as well as the templates. I created pages and from templates as part of trying to debug this. Everything works except this rule.

Marc - Devoteam
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.
September 16, 2024

Hi @Gil Solomon 

What if you run the rule as automation user.

On the Jira project, on the pages section can you link to the Confluence space and see and create pages?

Gil Solomon September 16, 2024

@Marc - Devoteam Hi, already tried that, the rule was by default running with automation user and when it failed as part of debug I changed it to my user.

 

Marc - Devoteam
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.
September 16, 2024

Hi @Gil Solomon 

I think the issue is related to the {{issue.sumary}} smart value.

I think this can't be used on creating a Confluence page based on automation, as this is a Jira smart value.

Check if you remove this smart value.

Gil Solomon September 16, 2024

@Marc - Devoteam 

I had the same hunch so I removed the smart value and it still failed.

Marc - Devoteam
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.
September 16, 2024

Hi @Gil Solomon 

I would reach out to Atlassian Support, to have them look at the logs.

Like Gil Solomon likes this
0 votes
Yash_reddy
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.
September 16, 2024

Hi @Gil Solomon  Can you share the rule Audit log details to check on the error.

 

Gil Solomon September 16, 2024

Hey @Yash_reddy 

Thanks for the quick response, the log was quite stingy and I copied the response in my post, sharing the full picture.

Screenshot 2024-09-16 at 10.44.34.png 

Yash_reddy
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.
September 16, 2024

Hi @Gil Solomon 

Can you verify if you have permission to create pages in the space where you are trying to create through automation

To confirm that you can try creating from UI.

Gil Solomon September 16, 2024

@Yash_reddy 

Yes, I'm an admin with full access to the confluence space as well as the templates. I created pages and from templates as part of trying to debug this. Everything works except this rule.

 

Yash_reddy
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.
September 16, 2024

Hi @Gil Solomon  

In the recent screenshot you have parent page as Security Requirements.

Try creating under the same parent page you have given in the Automation Rule "Epic Security Requirements Documents" with the template.

Gil Solomon September 16, 2024

@Yash_reddy I changed the automation rule to work with the Parent page I created, just on the off chance that there was some issue with the other page. I still get 403 here.

Yash_reddy
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.
September 16, 2024

I would suggest to Try the below @Gil Solomon 

1. Change the Template to None in automation and try to create a page without template to troubleshoot and see if its creating

Is the error just forbidden (403) or do you have any details in it apart from 403.

Gil Solomon September 16, 2024

@Yash_reddy 

I appreciate your patience.

Tried all of this and every suggestion in this post.

All roads lead to 403

 

Like Yash_reddy likes this
Yash_reddy
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.
September 16, 2024

I would suggest reaching out to Atlassian support.

 

Like Gil Solomon likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events