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 vote
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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

232 views 1 18
Join discussion

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