Jira custom field that lists all Confluence pages with certain tags?

Scott Beeson
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 Leaders.
May 27, 2015

Say I have a list of Confluence pages with the tag 'Vendor'.  Is there a way to make a custom JIRA field that would be a dropdown populated with the names of all those pages?

2 answers

1 accepted

2 votes
Answer accepted
Chander Inguva
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 Leaders.
May 27, 2015

Hi Scott,

              I never did this before, but Script Runner Plugin might help you do this.

  1. Install Script Runner Plugin from Atlassian Market Place.
  2. Create a Scripted field in JIRA.
  3. Interact JIRA and Confluence using Script Runner Plugin.
  4. Starting point to develop a piece of code would be from this link

Hope this gives you a basic idea.

 

Regards

Chander Inguva

Scott Beeson
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 Leaders.
June 2, 2015

Thanks. It seems like this would be a common use-case. For instance, I have confluence spaces for all my vendors. It's also logical that I would want a field so I can associate a vendor with a Jira ticket. It's too bad there is nothing built in. Also I've posted a related question because I can't get anywhere on the script.

0 votes
Pascal Robert October 28, 2020

Someone got this to work? I just tried with a scripted field, but the problem is the template, you can't iterate over an array in the field custom template, so you can't create a dropdown with the list of found spaces.

Suggest an answer

Log in or Sign up to answer