Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Is there a rule that will remove relevant text from the confluence page when Jira Issue is created?

Tiffany Miller November 5, 2024

I want to create an automation that will automatically delete text from a Confluence page once it's been converted into a Jira task.  I've googled it, and get an AI overview with directions, but can find nothing in the automation triggers in Confluence called "When a Jira Issue is created from a Confluence Page." This is leading me to believe the AI is hallucinating, so I came to ask, is there a way to do what I'm looking to do, and can you point me to the actual instructions if there is?

2 answers

0 votes
Bill Sheboy
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.
November 5, 2024

Hi @Tiffany Miller -- Welcome to the Atlassian Community!

First thing, I recommend ignoring any bot-generated ideas for a non-trivial scenario like this.

 

Next, I believe this is the scenario you are describing:

GIVEN a Confluence page exists with text on it
WHEN I select some text on the page
AND I select create issue from the selected text
AND I select the Create button to create the issue
THEN remove the selected text from the page used to create the issue, which will be adjacent to the added issue link

Those actions will lead to an Issue Created event and a Page Updated event (when the link is added to the page).  And so even without Confluence automation rules, if you knew the page id it could be updated using the REST API endpoints.

However, the challenge would be to parse any formatted text that was selected and remove it from the page.  Unless the page has a very simple layout, that would be very difficult to handle correctly in a rule.

 

Kind regards,
Bill

Bill Sheboy
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.
November 18, 2024

Hi @Tiffany Miller 

I am following up to learn if you are still working on this question or if it is resolved.  Thanks!

 

Tiffany Miller November 19, 2024

@Bill Sheboy still working on this one and testing it, but not likely to be very successful.

 

Bill Sheboy
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.
November 19, 2024

Thanks, Tiffany.  This seems related to your other question about trying to use the task macro to manage this removal.  Hopefully that one will work for you.

Tiffany Miller November 19, 2024

It's related, but not the same.  This one has to do with creating a Jira task off of selected text from a confluence page, and then having an automation delete that text, instead of having the user go back and remove that text, since the page puts that Jira task right next to the text used to create it, and we don't need that duplicated.

My other question is after that Jira task is created, and it gets worked on and completed, once it's completed, the user wants it to be removed from the confluence page, so that they don't need to track that work any further, nor delete it from the page themselves.  I personally think the user should see it in the done status and know that is complete before removal, and then either manually remove or run a rule to remove it then, but this is the request right now.

0 votes
Naveed Arshad
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 5, 2024

In Confluence, there isn't a built-in rule that automatically removes relevant text when a Jira issue is created. However, you can use automation tools or custom scripts to trigger actions like removing or updating text based on Jira issue creation events.

For more details, click here.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events