Name is the name of the project field.
()
| 956 | |
| 957 | // Name is the name of the project field. |
| 958 | func (p ProjectField) Name() string { |
| 959 | if p.TypeName == "ProjectV2Field" { |
| 960 | return p.Field.Name |
| 961 | } else if p.TypeName == "ProjectV2IterationField" { |
| 962 | return p.IterationField.Name |
| 963 | } else if p.TypeName == "ProjectV2SingleSelectField" { |
| 964 | return p.SingleSelectField.Name |
| 965 | } |
| 966 | return "" |
| 967 | } |
| 968 | |
| 969 | // Type is the typename of the project field. |
| 970 | func (p ProjectField) Type() string { |