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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

42 views 0 4
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