Project

General

Profile

CHANGING THE TRACKER AUTOMATICALLY IF THE RELATED TICKET WAS CHANGED

Added by MARIA TERESA RODRIGUEZ about 1 year ago

Hi,

Is there a way for redmine to change the tracker automatically once the related ticket was changed?

For example:

A. Sales Project Tracker is as follows: 1. Reserved 2. Transferred 3. Cancelled
B. Inventory Project Tracker: 1. Available for Sale 2. Sold 3. Hold

So if our Sales Team, would create ticket under Sales Project under Reserved and relate that ticket to Inventory Project, the tracker shld automatically changed from 1. Available for Sale to 2. Sold.

But if the Sales Team moved the tracker from Reserved to Cancelled, then the related ticket shld automatically changed from 2. Sold to tracker 3. Hold.

Will that be possible? This is for us to remove double work of updating both projects?

Appreciate any thoughts


Replies (1)

RE: CHANGING THE TRACKER AUTOMATICALLY IF THE RELATED TICKET WAS CHANGED - Added by Lorenzo Meneghetti about 1 year ago

Hi, it's not possible with out-of-the-box redmine core features.

  1. You could do that with a redmine plugin feature like this: https://github.com/anteo/redmine_custom_workflows (never tried to use and it's also a bit outdated).
  2. If you are a bit familiar with ruby you could write a rake task and execute on a scheduled base with cron. Something like (in pseudocode):
  my_ticket_selections = Issue.where(conditions)
  my_ticket_selections.each do |issue|
    issue.relations.select do |r|
      check_your_related_match_target_conditions
      do_the_changes_on_related_issue
      related_issue.save
    end
  end
    (1-1/1)