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
Community showcase
Posted Oct 16, 2018 in Jira

Looking for anyone who made the switch to Data Center

The Jira Marketing team is putting together an ebook on migrating to Data Center. We're looking for pro tips on how you staffed your project team and organized your Proof of Concept. Share yo...

1,287 views 17 10
Join discussion

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