Reindex and update base URL via API

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 Champion Jan 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 Champion Jan 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
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,310 views 12 19
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you