// resourceRoleCreate creates a new jira issue using the jira api
resourceRoleCreate creates a new jira issue using the jira api
// resourceRoleCreate creates a new jira issue using the jira api
func resourceRoleCreate(d *schema.ResourceData, m interface{}) error {
	config := m.(*Config)
	role := new(Role)
	returnedRole := new(Role)
	setRole(role, d)
	err := request(config.jiraClient, "POST", roleAPIEndpoint, role, returnedRole)
	if err != nil {
		return errors.Wrap(err, "Request failed")
	}
	setRoleResource(returnedRole, d)
	return resourceRoleRead(d, m)
}
func resourceRoleCreate ( d * schema . ResourceData , m interface { } ) error { config := m . ( * Config ) role := new ( Role ) returnedRole := new ( Role ) setRole ( role , d ) err := request ( config . jiraClient , " " , roleAPIEndpoint , role , returnedRole ) if err != nil { return errors . Wrap ( err , " " ) } setRoleResource ( returnedRole , d ) return resourceRoleRead ( d , m ) }
resourceRoleCreate creates a new jira issue using the jira api
resourceRoleCreate creates a new jira issue using the jira api