// resourceProjectCategoryCreate creates a new jira issue using the jira api
resourceProjectCategoryCreate creates a new jira issue using the jira api
// resourceProjectCategoryCreate creates a new jira issue using the jira api
func resourceProjectCategoryCreate(d *schema.ResourceData, m interface{}) error {
	config := m.(*Config)
	projectCategory := new(ProjectCategory)
	returnedProjectCategory := new(ProjectCategory)
	setProjectCategory(projectCategory, d)
	err := request(config.jiraClient, "POST", projectCategoryAPIEndpoint, projectCategory, returnedProjectCategory)
	if err != nil {
		return errors.Wrap(err, "Request failed")
	}
	setProjectCategoryResource(returnedProjectCategory, d)
	return resourceProjectCategoryRead(d, m)
}
func resourceProjectCategoryCreate ( d * schema . ResourceData , m interface { } ) error { config := m . ( * Config ) projectCategory := new ( ProjectCategory ) returnedProjectCategory := new ( ProjectCategory ) setProjectCategory ( projectCategory , d ) err := request ( config . jiraClient , " " , projectCategoryAPIEndpoint , projectCategory , returnedProjectCategory ) if err != nil { return errors . Wrap ( err , " " ) } setProjectCategoryResource ( returnedProjectCategory , d ) return resourceProjectCategoryRead ( d , m ) }
resourceProjectCategoryCreate creates a new jira issue using the jira api
resourceProjectCategoryCreate creates a new jira issue using the jira api