...
- Log in to Confluence.
- If the user already exists, then go to step 3. If the user does not exist, create a new user, for example, automation.
- Add the user with @mention on a sample page, Example-task.
- Select Source Editor and retrieve the user_key information. Please refer to the screenshot below for example user details:
Go to the user's profile page and copy the user id from the URL as shown below: Use the userkey details as shown in the CLI action below and run the action:
Code Block language text theme Midnight --action addPage --space TAS --title "Example-task" --content "<p>This is a new page</p><ac:task-list><ac:task><ac:task-id>3</ac:task-id><ac:task-status>incomplete</ac:task-status><ac:task-body><ac:link><ri:user ri:userkey="2c9180836d163e1d016d163fe09a0000" /></ac:link> take up this task list item-1</ac:task-body></ac:task> <ac:task><ac:task-id>5</ac:task-id><ac:task-status>complete</ac:task-status><ac:task-body><ac:link><ri:user ri:userkey="2c9180836d163e1d016d163fe09a0000" /></ac:link>, you can also do this task</ac:task-body></ac:task><ac:task><ac:task-id>6</ac:task-id><ac:task-status>complete</ac:task-status><ac:task-body><ac:link><ri:user ri:userkey="4028d083739f35770173b3d1a0220003" /></ac:link>do this now</ac:task-body></ac:task></ac:task-list>" --markdown --replace
In the Confluence page, Example-task, you can see the tasks with @mentioned user as shown below:- Once the user logs in to confluence, one can navigate to the user profile, and view the Complete and Incomplete tasks as shown below:
...