jiradata

package
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2016 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllowedValues

type AllowedValues []interface{}

AllowedValues defined from schema:

{
  "title": "allowedValues",
  "type": "array",
  "items": {}
}

type FieldMeta

type FieldMeta struct {
	AllowedValues   AllowedValues `json:"allowedValues,omitempty" yaml:"allowedValues,omitempty"`
	AutoCompleteURL string        `json:"autoCompleteUrl,omitempty" yaml:"autoCompleteUrl,omitempty"`
	HasDefaultValue bool          `json:"hasDefaultValue,omitempty" yaml:"hasDefaultValue,omitempty"`
	Key             string        `json:"key,omitempty" yaml:"key,omitempty"`
	Name            string        `json:"name,omitempty" yaml:"name,omitempty"`
	Operations      Operations    `json:"operations,omitempty" yaml:"operations,omitempty"`
	Required        bool          `json:"required,omitempty" yaml:"required,omitempty"`
	Schema          *JSONType     `json:"schema,omitempty" yaml:"schema,omitempty"`
}

FieldMeta defined from schema:

{
  "title": "Field Meta",
  "type": "object",
  "properties": {
    "allowedValues": {
      "title": "allowedValues",
      "type": "array",
      "items": {}
    },
    "autoCompleteUrl": {
      "title": "autoCompleteUrl",
      "type": "string"
    },
    "hasDefaultValue": {
      "title": "hasDefaultValue",
      "type": "boolean"
    },
    "key": {
      "title": "key",
      "type": "string"
    },
    "name": {
      "title": "name",
      "type": "string"
    },
    "operations": {
      "title": "operations",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "required": {
      "title": "required",
      "type": "boolean"
    },
    "schema": {
      "title": "Json Type",
      "type": "object",
      "properties": {
        "custom": {
          "title": "custom",
          "type": "string"
        },
        "customId": {
          "title": "customId",
          "type": "integer"
        },
        "items": {
          "title": "items",
          "type": "string"
        },
        "system": {
          "title": "system",
          "type": "string"
        },
        "type": {
          "title": "type",
          "type": "string"
        }
      }
    }
  }
}

type FieldMetaMap

type FieldMetaMap map[string]*FieldMeta

FieldMetaMap defined from schema:

{
  "title": "fields",
  "type": "object",
  "patternProperties": {
    ".+": {
      "title": "Field Meta",
      "type": "object",
      "properties": {
        "allowedValues": {
          "title": "allowedValues",
          "type": "array",
          "items": {}
        },
        "autoCompleteUrl": {
          "title": "autoCompleteUrl",
          "type": "string"
        },
        "hasDefaultValue": {
          "title": "hasDefaultValue",
          "type": "boolean"
        },
        "key": {
          "title": "key",
          "type": "string"
        },
        "name": {
          "title": "name",
          "type": "string"
        },
        "operations": {
          "title": "operations",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "required": {
          "title": "required",
          "type": "boolean"
        },
        "schema": {
          "title": "Json Type",
          "type": "object",
          "properties": {
            "custom": {
              "title": "custom",
              "type": "string"
            },
            "customId": {
              "title": "customId",
              "type": "integer"
            },
            "items": {
              "title": "items",
              "type": "string"
            },
            "system": {
              "title": "system",
              "type": "string"
            },
            "type": {
              "title": "type",
              "type": "string"
            }
          }
        }
      }
    }
  }
}

type JSONType

type JSONType struct {
	Custom   string `json:"custom,omitempty" yaml:"custom,omitempty"`
	CustomID int    `json:"customId,omitempty" yaml:"customId,omitempty"`
	Items    string `json:"items,omitempty" yaml:"items,omitempty"`
	System   string `json:"system,omitempty" yaml:"system,omitempty"`
	Type     string `json:"type,omitempty" yaml:"type,omitempty"`
}

JSONType defined from schema:

{
  "title": "Json Type",
  "type": "object",
  "properties": {
    "custom": {
      "title": "custom",
      "type": "string"
    },
    "customId": {
      "title": "customId",
      "type": "integer"
    },
    "items": {
      "title": "items",
      "type": "string"
    },
    "system": {
      "title": "system",
      "type": "string"
    },
    "type": {
      "title": "type",
      "type": "string"
    }
  }
}

type Operations

type Operations []string

Operations defined from schema:

{
  "title": "operations",
  "type": "array",
  "items": {
    "type": "string"
  }
}

type Status

type Status struct {
	Description    string          `json:"description,omitempty" yaml:"description,omitempty"`
	IconURL        string          `json:"iconUrl,omitempty" yaml:"iconUrl,omitempty"`
	ID             string          `json:"id,omitempty" yaml:"id,omitempty"`
	Name           string          `json:"name,omitempty" yaml:"name,omitempty"`
	Self           string          `json:"self,omitempty" yaml:"self,omitempty"`
	StatusCategory *StatusCategory `json:"statusCategory,omitempty" yaml:"statusCategory,omitempty"`
	StatusColor    string          `json:"statusColor,omitempty" yaml:"statusColor,omitempty"`
}

Status defined from schema:

{
  "title": "Status",
  "type": "object",
  "properties": {
    "description": {
      "title": "description",
      "type": "string"
    },
    "iconUrl": {
      "title": "iconUrl",
      "type": "string"
    },
    "id": {
      "title": "id",
      "type": "string"
    },
    "name": {
      "title": "name",
      "type": "string"
    },
    "self": {
      "title": "self",
      "type": "string"
    },
    "statusCategory": {
      "title": "Status Category",
      "type": "object",
      "properties": {
        "colorName": {
          "title": "colorName",
          "type": "string"
        },
        "id": {
          "title": "id",
          "type": "integer"
        },
        "key": {
          "title": "key",
          "type": "string"
        },
        "name": {
          "title": "name",
          "type": "string"
        },
        "self": {
          "title": "self",
          "type": "string"
        }
      }
    },
    "statusColor": {
      "title": "statusColor",
      "type": "string"
    }
  }
}

type StatusCategory

type StatusCategory struct {
	ColorName string `json:"colorName,omitempty" yaml:"colorName,omitempty"`
	ID        int    `json:"id,omitempty" yaml:"id,omitempty"`
	Key       string `json:"key,omitempty" yaml:"key,omitempty"`
	Name      string `json:"name,omitempty" yaml:"name,omitempty"`
	Self      string `json:"self,omitempty" yaml:"self,omitempty"`
}

StatusCategory defined from schema:

{
  "title": "Status Category",
  "type": "object",
  "properties": {
    "colorName": {
      "title": "colorName",
      "type": "string"
    },
    "id": {
      "title": "id",
      "type": "integer"
    },
    "key": {
      "title": "key",
      "type": "string"
    },
    "name": {
      "title": "name",
      "type": "string"
    },
    "self": {
      "title": "self",
      "type": "string"
    }
  }
}

type Transition

type Transition struct {
	Expand    string       `json:"expand,omitempty" yaml:"expand,omitempty"`
	Fields    FieldMetaMap `json:"fields,omitempty" yaml:"fields,omitempty"`
	HasScreen bool         `json:"hasScreen,omitempty" yaml:"hasScreen,omitempty"`
	ID        string       `json:"id,omitempty" yaml:"id,omitempty"`
	Name      string       `json:"name,omitempty" yaml:"name,omitempty"`
	To        *Status      `json:"to,omitempty" yaml:"to,omitempty"`
}

Transition defined from schema:

{
  "title": "Transition",
  "type": "object",
  "properties": {
    "expand": {
      "title": "expand",
      "type": "string"
    },
    "fields": {
      "title": "fields",
      "type": "object",
      "patternProperties": {
        ".+": {
          "title": "Field Meta",
          "type": "object",
          "properties": {
            "allowedValues": {
              "title": "allowedValues",
              "type": "array",
              "items": {}
            },
            "autoCompleteUrl": {
              "title": "autoCompleteUrl",
              "type": "string"
            },
            "hasDefaultValue": {
              "title": "hasDefaultValue",
              "type": "boolean"
            },
            "key": {
              "title": "key",
              "type": "string"
            },
            "name": {
              "title": "name",
              "type": "string"
            },
            "operations": {
              "title": "operations",
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "required": {
              "title": "required",
              "type": "boolean"
            },
            "schema": {
              "title": "Json Type",
              "type": "object",
              "properties": {
                "custom": {
                  "title": "custom",
                  "type": "string"
                },
                "customId": {
                  "title": "customId",
                  "type": "integer"
                },
                "items": {
                  "title": "items",
                  "type": "string"
                },
                "system": {
                  "title": "system",
                  "type": "string"
                },
                "type": {
                  "title": "type",
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "hasScreen": {
      "title": "hasScreen",
      "type": "boolean"
    },
    "id": {
      "title": "id",
      "type": "string"
    },
    "name": {
      "title": "name",
      "type": "string"
    },
    "to": {
      "title": "Status",
      "type": "object",
      "properties": {
        "description": {
          "title": "description",
          "type": "string"
        },
        "iconUrl": {
          "title": "iconUrl",
          "type": "string"
        },
        "id": {
          "title": "id",
          "type": "string"
        },
        "name": {
          "title": "name",
          "type": "string"
        },
        "self": {
          "title": "self",
          "type": "string"
        },
        "statusCategory": {
          "title": "Status Category",
          "type": "object",
          "properties": {
            "colorName": {
              "title": "colorName",
              "type": "string"
            },
            "id": {
              "title": "id",
              "type": "integer"
            },
            "key": {
              "title": "key",
              "type": "string"
            },
            "name": {
              "title": "name",
              "type": "string"
            },
            "self": {
              "title": "self",
              "type": "string"
            }
          }
        },
        "statusColor": {
          "title": "statusColor",
          "type": "string"
        }
      }
    }
  }
}

type Transitions

type Transitions []*Transition

Transitions defined from schema:

{
  "title": "transitions",
  "type": "array",
  "items": {
    "title": "Transition",
    "type": "object",
    "properties": {
      "expand": {
        "title": "expand",
        "type": "string"
      },
      "fields": {
        "title": "fields",
        "type": "object",
        "patternProperties": {
          ".+": {
            "title": "Field Meta",
            "type": "object",
            "properties": {
              "allowedValues": {
                "title": "allowedValues",
                "type": "array",
                "items": {}
              },
              "autoCompleteUrl": {
                "title": "autoCompleteUrl",
                "type": "string"
              },
              "hasDefaultValue": {
                "title": "hasDefaultValue",
                "type": "boolean"
              },
              "key": {
                "title": "key",
                "type": "string"
              },
              "name": {
                "title": "name",
                "type": "string"
              },
              "operations": {
                "title": "operations",
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "required": {
                "title": "required",
                "type": "boolean"
              },
              "schema": {
                "title": "Json Type",
                "type": "object",
                "properties": {
                  "custom": {
                    "title": "custom",
                    "type": "string"
                  },
                  "customId": {
                    "title": "customId",
                    "type": "integer"
                  },
                  "items": {
                    "title": "items",
                    "type": "string"
                  },
                  "system": {
                    "title": "system",
                    "type": "string"
                  },
                  "type": {
                    "title": "type",
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      },
      "hasScreen": {
        "title": "hasScreen",
        "type": "boolean"
      },
      "id": {
        "title": "id",
        "type": "string"
      },
      "name": {
        "title": "name",
        "type": "string"
      },
      "to": {
        "title": "Status",
        "type": "object",
        "properties": {
          "description": {
            "title": "description",
            "type": "string"
          },
          "iconUrl": {
            "title": "iconUrl",
            "type": "string"
          },
          "id": {
            "title": "id",
            "type": "string"
          },
          "name": {
            "title": "name",
            "type": "string"
          },
          "self": {
            "title": "self",
            "type": "string"
          },
          "statusCategory": {
            "title": "Status Category",
            "type": "object",
            "properties": {
              "colorName": {
                "title": "colorName",
                "type": "string"
              },
              "id": {
                "title": "id",
                "type": "integer"
              },
              "key": {
                "title": "key",
                "type": "string"
              },
              "name": {
                "title": "name",
                "type": "string"
              },
              "self": {
                "title": "self",
                "type": "string"
              }
            }
          },
          "statusColor": {
            "title": "statusColor",
            "type": "string"
          }
        }
      }
    }
  }
}

func (Transitions) Find

func (t Transitions) Find(name string) *Transition

Find will search the transitions for one that matches the given name. It will return a valid trantion that matches or nil

type TransitionsMeta

type TransitionsMeta struct {
	Expand      string      `json:"expand,omitempty" yaml:"expand,omitempty"`
	Transitions Transitions `json:"transitions,omitempty" yaml:"transitions,omitempty"`
}

TransitionsMeta defined from schema:

{
  "title": "Transitions Meta",
  "id": "https://docs.atlassian.com/jira/REST/schema/transitions-meta#",
  "type": "object",
  "properties": {
    "expand": {
      "title": "expand",
      "type": "string"
    },
    "transitions": {
      "title": "transitions",
      "type": "array",
      "items": {
        "title": "Transition",
        "type": "object",
        "properties": {
          "expand": {
            "title": "expand",
            "type": "string"
          },
          "fields": {
            "title": "fields",
            "type": "object",
            "patternProperties": {
              ".+": {
                "title": "Field Meta",
                "type": "object",
                "properties": {
                  "allowedValues": {
                    "title": "allowedValues",
                    "type": "array",
                    "items": {}
                  },
                  "autoCompleteUrl": {
                    "title": "autoCompleteUrl",
                    "type": "string"
                  },
                  "hasDefaultValue": {
                    "title": "hasDefaultValue",
                    "type": "boolean"
                  },
                  "key": {
                    "title": "key",
                    "type": "string"
                  },
                  "name": {
                    "title": "name",
                    "type": "string"
                  },
                  "operations": {
                    "title": "operations",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "required": {
                    "title": "required",
                    "type": "boolean"
                  },
                  "schema": {
                    "title": "Json Type",
                    "type": "object",
                    "properties": {
                      "custom": {
                        "title": "custom",
                        "type": "string"
                      },
                      "customId": {
                        "title": "customId",
                        "type": "integer"
                      },
                      "items": {
                        "title": "items",
                        "type": "string"
                      },
                      "system": {
                        "title": "system",
                        "type": "string"
                      },
                      "type": {
                        "title": "type",
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "hasScreen": {
            "title": "hasScreen",
            "type": "boolean"
          },
          "id": {
            "title": "id",
            "type": "string"
          },
          "name": {
            "title": "name",
            "type": "string"
          },
          "to": {
            "title": "Status",
            "type": "object",
            "properties": {
              "description": {
                "title": "description",
                "type": "string"
              },
              "iconUrl": {
                "title": "iconUrl",
                "type": "string"
              },
              "id": {
                "title": "id",
                "type": "string"
              },
              "name": {
                "title": "name",
                "type": "string"
              },
              "self": {
                "title": "self",
                "type": "string"
              },
              "statusCategory": {
                "title": "Status Category",
                "type": "object",
                "properties": {
                  "colorName": {
                    "title": "colorName",
                    "type": "string"
                  },
                  "id": {
                    "title": "id",
                    "type": "integer"
                  },
                  "key": {
                    "title": "key",
                    "type": "string"
                  },
                  "name": {
                    "title": "name",
                    "type": "string"
                  },
                  "self": {
                    "title": "self",
                    "type": "string"
                  }
                }
              },
              "statusColor": {
                "title": "statusColor",
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL