// resourceGroupCreate creates a new jira issue using the jira api
resourceGroupCreate creates a new jira issue using the jira api
// resourceGroupCreate creates a new jira issue using the jira api
func resourceGroupCreate(d *schema.ResourceData, m interface{}) error {
	config := m.(*Config)
	group := new(GroupRequest)
	group.Name = d.Get("name").(string)
	err := request(config.jiraClient, "POST", groupAPIEndpoint, group, nil)
	if err != nil {
		return errors.Wrap(err, "Request failed")
	}
	d.SetId(group.Name)
	return resourceGroupRead(d, m)
}
func resourceGroupCreate ( d * schema . ResourceData , m interface { } ) error { config := m . ( * Config ) group := new ( GroupRequest ) group . Name = d . Get ( " " ) . ( string ) err := request ( config . jiraClient , " " , groupAPIEndpoint , group , nil ) if err != nil { return errors . Wrap ( err , " " ) } d . SetId ( group . Name ) return resourceGroupRead ( d , m ) }
resourceGroupCreate creates a new jira issue using the jira api
resourceGroupCreate creates a new jira issue using the jira api