Skip to content
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.
Yakov edited this page Jan 24, 2019 · 3 revisions

1. How to retrieve a value from Key/value list custom field?

For example if ID of key/value custom field is 1:

  • cfs[1].try(:id) will return ID of selected value
  • cfs[1].try(:name) will return name of selected value

2. How to get access from the current issue to project custom field?

project.try(:custom_field_value, 1) Where 1 is current project custom field ID.

3. How to get access from the current issue to a custom field of another issue?

Issue.find_by(id: 1).try(:custom_field_value, 2) Where 1 is ID of another issue and 2 is ID of custom field.

Clone this wiki locally