// resourceCommentUpdate updates jira comment using jira api
resourceCommentUpdate updates jira comment using jira api
// resourceCommentUpdate updates jira comment using jira api
func resourceCommentUpdate(d *schema.ResourceData, m interface{}) error {
	config := m.(*Config)
	body := d.Get("body").(string)
	issueKey := d.Get("issue_key").(string)
	i := jira.Comment{
		ID:   d.Id(),
		Body: body,
	}
	comment, res, err := config.jiraClient.Issue.UpdateComment(issueKey, &i)
	if err != nil {
		body, _ := ioutil.ReadAll(res.Body)
		return errors.Wrapf(err, "updating jira comment failed: %s", body)
	}
	d.SetId(comment.ID)
	return resourceCommentRead(d, m)
}
func resourceCommentUpdate ( d * schema . ResourceData , m interface { } ) error { config := m . ( * Config ) body := d . Get ( " " ) . ( string ) issueKey := d . Get ( " " ) . ( string ) i := jira . Comment { ID : d . Id ( ) , Body : body , } comment , res , err := config . jiraClient . Issue . UpdateComment ( issueKey , & i ) if err != nil { body , _ := ioutil . ReadAll ( res . Body ) return errors . Wrapf ( err , " " , body ) } d . SetId ( comment . ID ) return resourceCommentRead ( d , m ) }
resourceCommentUpdate updates jira comment using jira api
resourceCommentUpdate updates jira comment using jira api