Ad Widget

Collapse

Redmine integration, how to close issues

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stratos
    Junior Member
    • Jul 2013
    • 10

    #1

    Redmine integration, how to close issues

    Hello, I'm trying to figure out what this means

    If you want to close issues on trigger resolve, add parameter redmine_close_status_id with close Status ID as value. (Status with "Issue closed" tick)​
    Instructions are from here: https://www.zabbix.com/integrations/redmine#redmine

    I have used "redmine_close_status_id={STATUS.ID}" but doesn't work.

    What is the proper syntax of the parameter? I'm getting the error: "Sending failed: Incorrect "redmine_close_status_id" parameter given! Must be an integer."

    Thank you in advance.
    Last edited by stratos; 09-10-2022, 08:44.
  • stratos
    Junior Member
    • Jul 2013
    • 10

    #2
    Made some progress. By using

    Code:
    redmine_close_status_id={TRIGGER.VALUE}
    the issue is opened on redmine side, but doesn't close on resolve of the trigger again with the same error

    Code:
    Sending failed: Incorrect "redmine_close_status_id" parameter given! Must be an integer
    Any thought on how the trigger resolve will close the issue also?​

    Comment

    • Bartosz Mickiewicz
      Junior Member
      • Oct 2022
      • 27

      #3
      It looks like you want to pass something different than an integer. Probably you have to look in the Redmine database or API to get the numerical value of the status closed. I would suggest checking how already closed issues in Redmine are described in the database, maybe there would be a field like status_ID, also there is a chance that there can be more than one status that marks the issue as closed, that's why Zabbix would need unique numerical value for the status you actually want.

      Comment

      • stratos
        Junior Member
        • Jul 2013
        • 10

        #4
        On the contrary, the error message says "it must be an integer". The problem is that the value must be sent from Zabbix and the issue should be closed on redmine side. Will take your advice to look how redmine is handling the closure of issues, to see if a zabbix value can do that. In any case the provided Instructions are very vague for the specific integration. Thank you.

        Comment

        • Mark-Unofficial
          Junior Member
          • Aug 2025
          • 1

          #5
          I know I'm a few years too late but I'm going through the process of setting this up myself.

          In order to find the status ID you need to go to the status on HTTPS://YOURDOMAIN/issue_statuses/ and click the one you want it to change it to, you'll find the ID in the URL, for example, for Close, mine is https://MYDOMAIN/issue_statuses/5/edit.

          So for any other noobs like myself having a play around, you need to add the redmine_close_status_id parameter to the Redmine Media type and set value to the ID number you want it to use for Close.

          Hope this helps others

          Comment

          Working...