Search found 12 matches

by Firmbyte
16 May 2022, 14:51
Forum: Help
Topic: does not contain a method named 'mc_issue_get'
Replies: 0
Views: 10107

does not contain a method named 'mc_issue_get'

I'm migrating from PowerShell 5.1 to version 7.2 and a process that works fine in 5.1 is failing in 7.2 and I don't know why. Mantis v1.2.20 This is what I'm doing: $mantisurl = "http://tickets.myurl.com/api/soap/mantisconnect.php?wsdl" $mantis = New-WebServiceProxy -Uri $mantisurl $ticket...
by Firmbyte
14 May 2019, 19:24
Forum: Help
Topic: inserting to custom_fields when creating ticket
Replies: 1
Views: 1687

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: 1687

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: 1620

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: 1620

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: 2580

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: 2580

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: 1909

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: 2788

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: 3713

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: 2449

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 ...