// resourceGroupDelete deletes jira issue using the jira api
resourceGroupDelete deletes jira issue using the jira api
// resourceGroupDelete deletes jira issue using the jira api
func resourceGroupDelete(d *schema.ResourceData, m interface{}) error {
	config := m.(*Config)
	relativeURL, _ := url.Parse(groupAPIEndpoint)
	query := relativeURL.Query()
	query.Set("groupname", d.Get("name").(string))
	relativeURL.RawQuery = query.Encode()
	err := request(config.jiraClient, "DELETE", relativeURL.String(), nil, nil)
	if err != nil {
		return errors.Wrap(err, "Request failed")
	}
	return nil
}
func resourceGroupDelete ( d * schema . ResourceData , m interface { } ) error { config := m . ( * Config ) relativeURL , _ := url . Parse ( groupAPIEndpoint ) query := relativeURL . Query ( ) query . Set ( " " , d . Get ( " " ) . ( string ) ) relativeURL . RawQuery = query . Encode ( ) err := request ( config . jiraClient , " " , relativeURL . String ( ) , nil , nil ) if err != nil { return errors . Wrap ( err , " " ) } return nil }
resourceGroupDelete deletes jira issue using the jira api
resourceGroupDelete deletes jira issue using the jira api