Name returns the populated name from whichever IssueFields union variant the field resolved to.
()
| 178 | |
| 179 | // Name returns the populated name from whichever IssueFields union variant the field resolved to. |
| 180 | func (r IssueFieldRef) Name() string { |
| 181 | switch { |
| 182 | case r.Date.Name != "": |
| 183 | return string(r.Date.Name) |
| 184 | case r.Number.Name != "": |
| 185 | return string(r.Number.Name) |
| 186 | case r.SingleSelect.Name != "": |
| 187 | return string(r.SingleSelect.Name) |
| 188 | case r.Text.Name != "": |
| 189 | return string(r.Text.Name) |
| 190 | } |
| 191 | return "" |
| 192 | } |
| 193 | |
| 194 | // FullDatabaseIDStr returns the fullDatabaseId string from whichever IssueFields union variant |
| 195 | // the field resolved to. |
no outgoing calls