Forums

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

How to get a jira issue from confluence with scriptrunner??

hyojoon choi April 6, 2021

I have seen many documents, but I have found only the code that creates issues or projects, and I have not seen the code that get issues. Is there a api to get issues from jira to the confluence? I'd appreciate it if you could let me know the document for reference.

1 answer

1 accepted

1 vote
Answer accepted
Thomas Deiler
Community Champion
April 10, 2021

Dear @hyojoon choi ,

what would you exactly like to do? Convert a jira issue to a confluence page? After which action / upon which criteria?

So long

Thomas

hyojoon choi April 14, 2021

I wanted to get the contents of Jira's field through the application link, but I didn't have any information, so I brought it through Rest Api. Thank you for your answer.

Thomas Deiler
Community Champion
April 16, 2021

Dear @hyojoon choi ,

both applications have rest interfaces. You can read Jira issues (and their fields) and put this information in a Confluence page by creating/updating pages.

From Jira:

GET: https://jira/rest/api/2/issue/ABC-1234

Then you have to parse the returned JSON for your fields and convert it to a Confluence JSON.

To Confluence (create):

POST: https://confluence/rest/api/content

So long

Thomas

Thomas Deiler
Community Champion
May 5, 2021

Dear @hyojoon choi ,

was my answer useful? Then I would be happy when you click on the "green accept answer" button.

So long
Thomas

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events