Bobswift (Run CLI in JIRA): Link a JIRA issue to a confluence page (after page creation)

Bobswift (Run CLI in JIRA): Link a JIRA issue to a confluence page (after page creation)

I am creating a new page in Confluence (from JIRA using Run CLI in JIRA addon). How do I provide a link in JIRA to connect to the confluence page? (I am looking to do a 1-way link from JIRA to Confluence)

--action copyPage --id 12345678 --newTitle "Page for %original_key%" --parent "98765432" --server http://confluence-test:8090/ --user jira_confluence --password abcdef123456 

Do I use "–findReplace" at the end? (I have not been able to use this successfully). Pls help.

2 answers

@Bob Swift [Bob Swift Atlassian Add-ons].. this one is for you...

An example would be:

--findReplace ##ISSUE_KEY##:%original_key%

Regarding linking from JIRA to Confluence, suggest adding another action to your script after the copyPage that does an addRemoteLink action.

will try this out.. thank you..

@bobswift..

I tried this but could not get it to work. I tried to break confluence page creation and issue linking into 2 different actions. the page creation works but not the "addRemoteLink". Please review and let me know wha tI am missing.

 

addremotelinking-2.png

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

685 views 6 13
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you