Reindex and update base URL via API

Rahul Aich [Nagra]
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.
January 22, 2018

Hi All

I would like to perform these tasks programmatically using the API or with SQL scripts. Is it possible to -

1. Trigger a re-index on JIRA 7.X

2. Update Base URL 

3. Disable outgoing mail server

4. Delete application links

 

Why  i need to do this?

Because i am writing a script which would automatically refresh our test jira instance with the production jira instance. 

 

1 answer

0 votes
Tarun Sapra
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 22, 2018

Reindex via API

https://confluence.atlassian.com/jirakb/how-to-trigger-re-indexing-using-rest-request-via-curl-command-663617587.html

 

Base url update -

curl -i -u admin:admin -X PUT --data "https://newserver/jira" -H "Content-Type: application/json" https://server/jira/rest/api/2/settings/baseUrl

Set base u r lPUT /rest/api/2/settings/baseUrl

Tarun Sapra
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 22, 2018
Tarun Sapra
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 22, 2018

For the mail sevrer access via API here's an duplicate question - https://community.atlassian.com/t5/Answers-Developer-Questions/jira-mail-server-api/qaq-p/480191

Suggest an answer

Log in or Sign up to answer