Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Jira Automation Send Web request to create Folder(s) in Sharepoint library

Dara Adekore
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Oct 24, 2023

Hi, I would like to create a folder(or nested folders) inside of a library on a SharePoint site. This is the URL I have so have for the Library.

https://mycompany.sharepoint.com/sites/DepartmentA/_api/web/folders

{
"__metadata": {
"type": "SP.Folder"
},
"ServerRelativeUrl": "/sites/ITCanadaDepartment/Training & Support/Helpdesk documents/test/{{issue.fields.summary}}"
}

I've tried running the trigger manually with this request body . I've also set the following headers:

Content-Type:application/json

Authorization: "Bearer " + accessToken

Accept:application/json;odata=verbose

I work with RESTful APIs and I was hoping I wouldnt even need to authenticate but it seems that is not the case . I get the following 403 Error:

I want to know if there is a way to make this request work . I am using the same email for my Office365 account as my Jira account so if there can be an implicit authorization between the two(doubtful) that would be nice. 

Otherwise it's looking like I will to 1 authorize 2 pass the returned accessToken to the request body in order for this  to work. Please I would love any help/ idea available . 

0 answers

Suggest an answer

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

Atlassian Community Events