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

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,455,617
Community Members
 
Community Events
175
Community Groups

Update a notification using mywork REST API

Hi!

I'm currently working on a small notification system within Jira using the REST informations in Confluence. I need to get the notification and edit them without any sort of confluence authentification so I can only use the rest endpoints that support a bypass.

The fetching is working great however I can't get the updating working. I'm using the Notifications and Tasks REST API.

  • GET: /rest/mywork/latest/notification?os_authType=all&bypass=myUsername
  • POST: /rest/mywork/latest/notification?os_authType=all&bypass=myUsername

I don't feel the need to share some code because even a request in Postman isn't working. Using a POST only  create a notification even though the documentation mention it creates and update.

Ultimately I want to change the read value from false to true but it only creates a new notification instead of updating.

I've tried to send the whole notification with the read value changed in the body but it still creates a new one.

Hopefully someone can help me, thanks a lot! Have a great day

1 answer

0 votes
Brant Schroeder Community Leader Oct 07, 2021

@VS Were you able to find a resolution to the issue?  If so can you please share what it was.

No, I ended up making my own rest API on Confluence with Scriptrunner to transfert notifications.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events