AirTibu

Results 9 comments of AirTibu

Hi, Use this code: **AFTER SAVE SECTION:** ``` same_subject = Issue.where("subject = ?",self.subject).pluck(:id) same_subject.each do |issueid| relation = IssueRelation.new :issue_from => self, :issue_to => issueid,:relation_type => IssueRelation::TYPE_RELATES relation.save end ```...

Hi, You are right, small correction is needed, use this code: same_subject = Issue.where("subject = ?",self.subject).pluck(:id) ``` same_subject.each do |issueid| relation = IssueRelation.new :issue_from => self, :issue_to => Issue.find(issueid),:relation_type =>...

Hi David, Set the observable object to "Issue Attachments": ![image](https://user-images.githubusercontent.com/68789735/98360332-e86ae680-2029-11eb-9aa6-4fdab87f0fa7.png) Use the below code in AFTER SAVE. You can modify the file size limit by changing it in this section:...

Hi, Agree, we have only dirty hack solution for that. Check this: https://github.com/anteo/redmine_custom_workflows/issues/226#issuecomment-945634288

Hi, There some contradictions in your first and second post, but as far as I understand, you need this code: **BEFORE SAVE** ``` if tracker_id ==2 @cf_key_value = CustomFieldEnumeration.where(:id=> custom_field_value(10).to_s,:custom_field_id...

Hi, In this case you need this code: ``` if tracker_id ==2 && project_id==1 @cf_key_value = CustomFieldEnumeration.where(:id=> custom_field_value(10).to_s,:custom_field_id => '10').first.to_s @issues_id_list = Issue.joins(:custom_values).where("tracker_id = '2' AND project_id = '1' AND...

Hi, There is a logic error in this request. If I understand correctly, the request is that if a user creates an issue, the issue assignee should be the group...

Hi, I'm not sure if I understand your intent correctly, but if everything is correct, you want this: 1. You have a user, who is the assignee. 2. Find this...

Hi, Ok, I understand now. Try this code: ``` @my_group_ids = [149, 25, 27, 34, 46, 9, 18, 20, 24, 15, 14, 53] @group_to_assignee = @my_group_ids.index(status_id.to_i) self.assigned_to = Group.find(@group_to_assignee.to_i) unless...