Search found 8 matches

by PacoA
15 Dec 2020, 10:42
Forum: Help
Topic: sending attachment via post
Replies: 7
Views: 2500

Re: sending attachment via post

I must not have explained my problem well. Its nothing about sending mails. It is about send the mantis bug files of an issue to another issue in another system, like I usually do with bugs itselves or bugnotes (test), etc. Postman generate this code when testing Jira API. And it works: <?php $curl ...
by PacoA
15 Dec 2020, 08:10
Forum: Help
Topic: sending attachment via post
Replies: 7
Views: 2500

Re: sending attachment via post

cas wrote: 14 Dec 2020, 19:29 All required functions you can find in core/file_api.php .
I thought so, but I have not found how to do it.
by PacoA
14 Dec 2020, 18:00
Forum: Help
Topic: sending attachment via post
Replies: 7
Views: 2500

Re: sending attachment via post

Think you have stored the files in the database. Attachments in bugnotes are stored in mantis_bug_file_table. What I´m trying to do is write code in a plugin in order to, automatically, the attachments will be sent to Jira by cURL post. Acctually this plugin is working updating status, some fields ...
by PacoA
14 Dec 2020, 13:26
Forum: Help
Topic: sending attachment via post
Replies: 7
Views: 2500

sending attachment via post

Hello. I´ve connected Mantis and Jira with API´s. It works. But now I cannot send a bug attachemt file from Mantis to Jira via POST. I´m testing it with Postman and it works. When I create the cURL request with postman, I only have to select the file. When doing it in Mantis I retrieve the file from...
by PacoA
15 Nov 2020, 19:41
Forum: Help
Topic: Using echo to trace
Replies: 4
Views: 2040

Re: Using echo to trace

Sorry about my english. As bad as my php programming. Of course I meant "nothing". I´m trying to trace a plugin. I´m using bugnote_add to trace, because I don´t see echoes . Write in a bugnote the text I cannot display. My code is working. So I don´t need help with that. It´s only that see...
by PacoA
15 Nov 2020, 12:23
Forum: Help
Topic: Using echo to trace
Replies: 4
Views: 2040

Re: Using echo to trace

Hi. Thanks.
My code is executing.
Actually I´m tracing by using 'bugnote_add' function.

Even thoug I´v tried your suggestion and it works, the process die ;). But replacing die by echo does anything.
by PacoA
13 Nov 2020, 10:02
Forum: Help
Topic: Using echo to trace
Replies: 4
Views: 2040

Using echo to trace

Hi.
It could be a silly question but I had no answer by searching.
Why 'echo' or 'print' doesn´t work?

I´m triyng to trace my code with simple displays but I can´t see them
by PacoA
12 Nov 2020, 09:42
Forum: Help
Topic: Detect change status in integration
Replies: 1
Views: 1129

Detect change status in integration

Hello.

I´m tryin to connect Jira with mantis 2.24.2. I need to make a post request when a mantis issue change to a selected status.

I´v tried in 'custom functions' but had trouble with management of history of updated bug.

I´v been told I could use EVENT_UPDATE_LOG but I don´t know how.

Thanks