How to create a script to change the issue status in mantis
Moderators: Developer, Contributor
How to create a script to change the issue status in mantis
I am trying to create a php script to change the status of a particular project in mantis (e.g. assigned to confirmed) without going into mantis itself
Re: How to create a script to change the issue status in man
Does anyone know how to create the script?
Re: How to create a script to change the issue status in man
Keep in mind that
- there are access and workflow rules in Mantis that should not be violated by your script
- changing a status does also trigger other actions (e.g. filling the history, sending email, maybe trigger custom functions or plugin events)
There are different solutions depending on what you need:
Dirty solution: Update field in database
Clean solution 1: use the SOAP API for it
https://www.mantisbt.org/docs/master-1. ... ONFIG.SOAP
Clean solution 2: use the internal Mantis API
Start reading bug_change_status_page.php to get an impression of it
- there are access and workflow rules in Mantis that should not be violated by your script
- changing a status does also trigger other actions (e.g. filling the history, sending email, maybe trigger custom functions or plugin events)
There are different solutions depending on what you need:
Dirty solution: Update field in database
Clean solution 1: use the SOAP API for it
https://www.mantisbt.org/docs/master-1. ... ONFIG.SOAP
Clean solution 2: use the internal Mantis API
Start reading bug_change_status_page.php to get an impression of it
Re: How to create a script to change the issue status in man
Thank you for your help. If I wanted to use SOAP API, what are some of the configurations or settings that I need to do?