Fixed slack integration.
This commit is contained in:
parent
e42e373de4
commit
94d348d90e
1 changed files with 18 additions and 20 deletions
|
@ -90,7 +90,6 @@ backend.perform
|
||||||
config['items'].each {|item|
|
config['items'].each {|item|
|
||||||
|
|
||||||
# check action
|
# check action
|
||||||
if item['types']
|
|
||||||
if item['types'].class == Array
|
if item['types'].class == Array
|
||||||
hit = false
|
hit = false
|
||||||
item['types'].each {|type|
|
item['types'].each {|type|
|
||||||
|
@ -99,12 +98,11 @@ backend.perform
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
next if !hit
|
next if !hit
|
||||||
end
|
elsif item['types']
|
||||||
next if item['types'].to_s != @item[:type].to_s
|
next if item['types'].to_s != @item[:type].to_s
|
||||||
end
|
end
|
||||||
|
|
||||||
# check group
|
# check group
|
||||||
if item['group_ids']
|
|
||||||
if item['group_ids'].class == Array
|
if item['group_ids'].class == Array
|
||||||
hit = false
|
hit = false
|
||||||
item['group_ids'].each {|group_id|
|
item['group_ids'].each {|group_id|
|
||||||
|
@ -113,7 +111,7 @@ backend.perform
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
next if !hit
|
next if !hit
|
||||||
end
|
elsif item['group_ids']
|
||||||
next if item['group_ids'].to_s != ticket.group_id.to_s
|
next if item['group_ids'].to_s != ticket.group_id.to_s
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue