On my instance, i just want to add announcement on JSD customer portal whenever a version is released, is there any way to do it programmatically? Any suggestions are welcome.
Hello there! Thanks for reaching out the Atlassian Community!
I was able to find an endpoint to change the announcement message with a REST API call. This is not in the official Jira's REST API, so you should use the following to make the call:
POST /rest/servicedesk/1/servicedesk-data/announcement/portal/{portalId}
You can get the "portalId" by checking the URL when you access the portal in the GUI, it should be the last number in it.
Now, you can create a script that makes this call to change the announcement message. You can also release the version with the script by calling the official API:
PUT /rest/api/2/version/{id}
Kind regards,Maurício Karas
Thank you for the reply @Mauricio Karas, can you help me with one more thing. As above mentioned announcement will work on portal page, what if i want to make global announcement?
You can use the Announcement Banner(configuration in System > Announcement Banner) to make the text visible throughout the entire instance. Unfortunately, there's no REST API to change it, the only way to change it programmatically would be to change the value directly in the database.
Thank you for your reply @Mauricio Karas, is there any way to authorize private rest api?
It looks like you're new here. Sign in or register to get started.