Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Plugin Jira_Cloud_REST returned an error: Could not resolve host

edkivikangas
June 9, 2021

I try to push defects from TestRail to Jira. Screenshot

But I get an error. Screenshot

Can you please let me know what I should do to resolve this error?

In other cases integration TestRail-Jira works good. For example I can add tasks without problems. Screenshot

 

1 answer

1 vote
Henning Tietgens
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 12, 2013

Try this:

import com.atlassian.jira.component.ComponentAccessor

changeItems = ComponentAccessor.changeHistoryManager.getAllChangeItems(issue)
if (changeItems?.size()>0) {
    ComponentAccessor.userUtil.getUserByKey(changeItems.findAll{it.field=='resolution'}.sort(false).last().userKey)
} else {
    null
}

Suggest an answer

Log in or Sign up to answer