Why is a user ID missing the start when using Send Web Request to Create a Confluence Page?

James Twidale January 18, 2024

Hi,

I hope I can explain this well enough.

I am trying to create a Confluence page in a specific format using Jira Service Management Automation by sending a web request. I am also taking data from a Jira ticket to populate the page upon creation using smart values. 

I have a field which is a multi-select user picker containing 3 users. 

I am creating a variable to list these users and add [~ to the start and ] to the end of each user account ID, so the output is [~619fsk884657a0592709f28d4] (example) and then referencing the smart value of the variable in the Web Request - {{Cont}}.

Variable smart value: {{#issue.customfield_10952.accountId}}[~{{.}}], {{/}}

Web Request Issue.png

When the Confluence page is created, users who have a simple user ID like in the example above work fine and get mentioned on the page, but users who have "712202:" at the start of their user ID have this part cut off so it doesn't use the full user ID and can't mention this person in the Confluence page.

Can anyone advise why this is happening and a way to fix this, please? I have looked everywhere on the internet and can't find anyone else having this issue.

Thanks

3 answers

1 accepted

0 votes
Answer accepted
James Twidale February 13, 2024

I have been on with Atlassian support who have advised this is happening because there is an overlap on how space keys with wiki are called. They use the same input for both things.

They have raised a bug ticket for this: https://jira.atlassian.com/browse/CONFCLOUD-77495

There is no workaround so please vote for this so they fix it within the next 20 years.

Thanks

0 votes
Najjar _Innovura_
Atlassian Partner
July 5, 2024

Hello James

I noticed you're facing challenges with automating Confluence page creation using Jira's smart values. 🤔 Why not simplify the process? Our app, Pageify - Automate pages from Jira, automates Confluence page creation directly from Jira workflow transitions.

You can use Jira issue fields to populate templates seamlessly. This means no complex web requests or micro-editing🔬templates inside a small text area

Give Pageify a try — it's designed to support your documentation 

Hope this helps, and happy automating! 😊

0 votes
James Twidale January 18, 2024

Web Request Issue.png

Sorry, forgot to add this image of the web request.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events