Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira Automation: Link user's personal space to an issue

Ashley Honeycutt
Contributor
January 8, 2025

We have automation in place that generates a set of sub-tasks when a user is offboarded from our environment. 

One of these sub-tasks is to archive that user's personal space (after verifying there's no content there that their former manager/team needs to access). 

Is there anyway to have this task automatically link to their personal space?

3 answers

0 votes
Laurie Sciutti
Community Champion
January 8, 2025

Hi @Ashley Honeycutt ~ I like @John Price 's answer, but have you tried an automation rule that just creates a web link using smart values to append the user's username if that's captured in the Jira issue (like Reporter) to the URL:

 

https://yoursite/display/~{{reporter.displayName}}

 

This assumes your Confluence usernames are the same as your Jira usernames...

John Price
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 8, 2025

Hey @Laurie Sciutti  - does that still work with all the privacy changes? I couldn't get the username version to work right, but may I had a typo someplace. I'm still a bit behind on how completely usernames have been phased out and where.

Laurie Sciutti
Community Champion
January 9, 2025

@John Price ~ it may not... I haven't tried it.

0 votes
John Price
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 8, 2025

Ashley -

I got this to work using a custom People field for the user to clean up and a custom URL field for the space to check. I don't think you can currently add a web link to Links using automation without using REST calls in your rule. See this request: https://jira.atlassian.com/browse/AUTO-289

Here's how I did my version. A bit tricky since accountId in the People object has dashes and a colon but the space URL doesn't. Try an Edit Issue Fields action and use the following:


{{baseurl}}/wiki/spaces/~{{issue.customfield_10090.accountId.replace(":", "").replace("-", "")}}/overview


That works for me. Note that it doesn't check whether the space exists; if not, you'll get a "Page Not Found" warning when viewing that field on the issue. 

See if that works for you!

John Price
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 8, 2025

Obviously change the custom field id :-)

0 votes
John Funk
Community Champion
January 8, 2025

Hi Ashley - What are you defining as their "personal space"?

Ashley Honeycutt
Contributor
January 8, 2025

Hi @John Funk

Meaning their personal space in Confluence, if they had one.

John Funk
Community Champion
January 8, 2025

Ah - this got posted in the Jira group - will move it over to Confluence. 

Ashley Honeycutt
Contributor
January 8, 2025

Well, it's still a Jira question since it pertains to building a Jira automation rule. It just needs to create an issue in a project that includes a link to the users personal space in Confluence.

Like # people like this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events