Search found 11 matches

by Firmbyte
14 May 2019, 19:24
Forum: Help
Topic: inserting to custom_fields when creating ticket
Replies: 1
Views: 1056

Re: inserting to custom_fields when creating ticket

I got it cracked, not pretty, but does the job. $mantis = New-WebServiceProxy -Uri "http://ticketsdemo2.empyreanbenefits.com/api/soap/mantisconnect.php?wsdl" $issue = New-Object ($mantis.GetType().Namespace + ".issuedata") $project = New-Object ($mantis.GetType().Namespace + &quo...
by Firmbyte
14 May 2019, 18:08
Forum: Help
Topic: inserting to custom_fields when creating ticket
Replies: 1
Views: 1056

inserting to custom_fields when creating ticket

I'm trying to insert to fields in custom_fields in a ticket. I'll have to insert/update all the custom_fields, but specifically, in the ticket there is a field called " CSG Director" and I want to insert when I create a new ticket and update the value if existing. How I'm trying to do it n...
by Firmbyte
23 Oct 2018, 13:38
Forum: Help
Topic: mc_issue_relationship_add
Replies: 1
Views: 1060

Re: mc_issue_relationship_add

Solution provided by Marsze on Stackoverflow
https://stackoverflow.com/questions/529 ... 3#52939443
by Firmbyte
19 Oct 2018, 18:38
Forum: Help
Topic: mc_issue_relationship_add
Replies: 1
Views: 1060

mc_issue_relationship_add

Trying to add a relationship to a ticket and hitting an error, any help or advice greatfully received. Error is: New-Object : Cannot find type [Microsoft.PowerShell.Commands.NewWebserviceProxy.AutogeneratedTypes.WebServiceProxy1pi_soap_mantisconnect_php_wsdl.issuerelationshipadd]: verify that the as...
by Firmbyte
05 Oct 2018, 16:35
Forum: Help
Topic: Invalid custom field value for field id 81
Replies: 2
Views: 1301

Re: Invalid custom field value for field id 81

I've found what caused this. The scripts I had were reading the Mantis tickets and finding the values in the fields but in the Mantis database those values were no longer there. So when I edited the ticket, the field was actually blank, but before editing, it appeared to have a value and the script ...
by Firmbyte
05 Oct 2018, 15:46
Forum: Help
Topic: Invalid custom field value for field id 81
Replies: 2
Views: 1301

Invalid custom field value for field id 81

I've been using a PowerShell Function for a few years now that is suddenly throwing an error. Exception calling "mc_issue_update" with "4" argument(s): "Invalid custom field value for field id 81 ." At line:29 char:44 + $mantis.mc_issue_update($($Sec.Username),$($Sec.Pa...
by Firmbyte
13 Sep 2018, 00:50
Forum: Help
Topic: mc_project_get_issues doesn't return closed tickets
Replies: 2
Views: 1224

mc_project_get_issues doesn't return closed tickets

I've tried getting a list of tickets for a specific project but the mc_project_get_issues api doesn't return closed tickets. When I use the api i get 92 tickets returned but when I query the database directly, I get 97. The 5 extra as closed. Is the api supposed to exclude closed tickets ? Is there ...
by Firmbyte
19 Feb 2017, 15:09
Forum: General Discussion
Topic: mc_issue_note_add
Replies: 1
Views: 2245

mc_issue_note_add

I'm Newbie to this and I'm trying to add notes to a ticket using mc_issue_note_add but without success. I'm doing this: $id = "C:\Users\me\Documents\me.xml" # Read XML configuration file [xml]$config = Get-Content $id $UserName = $config.ID.UserName $Password = $config.ID.Password $mantis ...
by Firmbyte
12 Feb 2017, 23:28
Forum: Help
Topic: Mantis api with Powershell
Replies: 1
Views: 2089

Mantis api with Powershell

I want to create new, update existing and add notes to tickets using Powershell.
I've tried http://mantishub.readthedocs.io/api.html but not a whole lot of info there.
I'd appreciate some guidance if anyone can help?
by Firmbyte
07 Feb 2017, 18:10
Forum: Help
Topic: Powershell script to post Notes
Replies: 1
Views: 1929

Powershell script to post Notes

I've been using a Powershell script to read tickets, update them to say "in progress", run commands based on info from the ticket, and then update the ticket when completed. But I'm doing this via the backend database and not the mantis api. I'd like to do it via the api but struggling to ...