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?
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
I am following up to learn if you are still working on this question or if it is resolved. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.