Reporting Issue Using PHP

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
JR10
Posts: 20
Joined: 20 Sep 2011, 18:19

Reporting Issue Using PHP

Post by JR10 »

I want to report an issue using php, and parameters.
Please tell me how.
Thanks in advance.
atrol
Site Admin
Posts: 8374
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Reporting Issue Using PHP

Post by atrol »

Have a look at at bug_report.php of your MantisBT installation.
Please use Search before posting and read the Manual
JR10
Posts: 20
Joined: 20 Sep 2011, 18:19

Re: Reporting Issue Using PHP

Post by JR10 »

I did, but can't find any help.
Can you please tell me what to look for exactly?
What I'm looking for is a function, with parameters to report an issue.
atrol
Site Admin
Posts: 8374
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Reporting Issue Using PHP

Post by atrol »

Please use Search before posting and read the Manual
JR10
Posts: 20
Joined: 20 Sep 2011, 18:19

Re: Reporting Issue Using PHP

Post by JR10 »

I made a php file that includes the api/soap/mc_issue_api.php file.
I'm trying to use the function 'mc_issue_add'
I get error:Fatal error: Class 'soap_fault' not found in /home/jr10/domains/skylinemta.com/public_html/bugs/api/soap/mc_issue_api.php on line 553'.
Thanks.
JR10
Posts: 20
Joined: 20 Sep 2011, 18:19

Re: Reporting Issue Using PHP

Post by JR10 »

I managed to get it working.
Thanks.
JR10
Posts: 20
Joined: 20 Sep 2011, 18:19

Re: Reporting Issue Using PHP

Post by JR10 »

I'm having one problem now, knowing the right possible values, the "project" for example, the id or the name, the "priority".
Is there a way to know the possible values?
Thanks.
atrol
Site Admin
Posts: 8374
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Reporting Issue Using PHP

Post by atrol »

Look at mc_enum_api.php
Please use Search before posting and read the Manual
JR10
Posts: 20
Joined: 20 Sep 2011, 18:19

Re: Reporting Issue Using PHP

Post by JR10 »

atrol wrote:Look at mc_enum_api.php
Thanks, but I also want the value.
Like what can the "priority" be.
I tried a string, capitalized string, number, nothing worked right.
atrol
Site Admin
Posts: 8374
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Reporting Issue Using PHP

Post by atrol »

Sorry, I don't have the time to support you in such a detailed way.
Can you tell me what kind of program you want to develop?
Maybe I can deliver you some links to existing 3rd party addons or plugins which are a good starting point for your development.
Please use Search before posting and read the Manual
JR10
Posts: 20
Joined: 20 Sep 2011, 18:19

Re: Reporting Issue Using PHP

Post by JR10 »

I'm not trying to develop a program.
Just a php script.
It's weird, because I tried, strings and numbers, but nothing is working.
When I try the priority = "2", The priority field is "@2@".
When I try a string like "URGENT" or "urgent", the priority field is set to the default value.
atrol
Site Admin
Posts: 8374
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Reporting Issue Using PHP

Post by atrol »

JR10 wrote:I'm not trying to develop a program.
Just a php script.
For what purpose?
Please use Search before posting and read the Manual
JR10
Posts: 20
Joined: 20 Sep 2011, 18:19

Re: Reporting Issue Using PHP

Post by JR10 »

Reporting issues in game in Multi Theft Auto.
atrol
Site Admin
Posts: 8374
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Reporting Issue Using PHP

Post by atrol »

Another kind of API which might help
http://code.google.com/p/mantis-rest/wiki/UserTutorial
Please use Search before posting and read the Manual
JR10
Posts: 20
Joined: 20 Sep 2011, 18:19

Re: Reporting Issue Using PHP

Post by JR10 »

MC is easy and simple, I want to use it.
No one know here?
I just want to know, how to set the priority/severity?
Post Reply