The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Add new values to a Jira custom field from Confluence page

Ksenia Abdulina
March 17, 2021

Hi all!

I have a task to dynamiclly add new values to a custom field in Jira. Values should be taken from a Confluence page. How can I achieve this? 

I have a ScriptRunner for Jira and for Confluence. I use JIRA Server but wasn't able to pick such option during question creation.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Helmy Ibrahim _Adaptavist_
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 27, 2021

Hi Ksenia,

You can use this script (Link to Confluence From Jira) to send REST requests from Jira to Confluence without the need to handle authentication.

To get a Confluence page, you can send a GET request to the following endpoint: /rest/api/content

As to dynamically updating the custom field value, there are various ways you can do this with ScriptRunner for Jira either with custom post-function, listeners, and more. There are various examples online.

Cheers,
Helmy