ID is the ID of the project field.
()
| 944 | |
| 945 | // ID is the ID of the project field. |
| 946 | func (p ProjectField) ID() string { |
| 947 | if p.TypeName == "ProjectV2Field" { |
| 948 | return p.Field.ID |
| 949 | } else if p.TypeName == "ProjectV2IterationField" { |
| 950 | return p.IterationField.ID |
| 951 | } else if p.TypeName == "ProjectV2SingleSelectField" { |
| 952 | return p.SingleSelectField.ID |
| 953 | } |
| 954 | return "" |
| 955 | } |
| 956 | |
| 957 | // Name is the name of the project field. |
| 958 | func (p ProjectField) Name() string { |