Forums

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

Create a MockIssue from REST response

dvtrsc
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 26, 2023

Hello good morning,

How could be created a MockIssue or a plain Issue from the information retrieved via REST/API client?

Nowadays I receive correctly a

com.atlassian.jira.rest.client.api.domain.Issue

from a call to

jiraRestClient.getIssueClient().getIssue(id).claim()

 

But need to work with classes of type

 

com.atlassian.jira.issue.Issue

or at least, with MockIssue, but any kind of clone, trespassing info, contruct or cast gets error.

 

Please let me know,

Thanks!

Best regards,

 

0 answers

Suggest an answer

Log in or Sign up to answer