It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

I'm using CLI in JIRA to create a Confluence page. How do I pass the @pageId@ to a JIRA action? Edited

I'm using Bob Swift CLI in JIRA to create a Confluence page. How do I pass the @pageId@ to a JIRA action?

CLI action
Product: Confluence
Action: --action run --server http://confluence --user my-user --password my-password 
Data:
--action copyPage --space "eWebProjects" --parent "Project List" --title "eWeb Project Template" --newTitle "eWeb Project %original_id%"

--action renamePage --id @pageId@ --newTitle "eWeb Project @pageId@"

--action modifyPage --id @pageId@ --findReplace $projectId:@pageId@,LINK_TO_ISSUE:%original_id%

--action copyPage --space "eWebProjects" --parent "eWeb Project @pageId@" --title "eWeb Request Template" --newTitle "eWeb Request @pageId@"

***************************************************************

@pageId@ is empty when calling this cli action

CLI action
Product: JIRA
Action: --action run --server http://jira --user my-user --password my-password
Data:
--action setFieldValue --field "Project Id" --value @pageId@ --issue %original_key%

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

Marketplace Spotlight: Manage your assets with asset management apps

  The role of IT professionals has become increasingly difficult over the last decade. Our organizations work in an increasingly software-powered world and IT professionals are expected to not...

237 views 3 9
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you