Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Jira Automation - Create Sub-Task and add a comment

Hi,

I am using Jira Automation in my instance and have a monthly scheduled sub-task create.

When the sub task is created, I want the automation to add a comment to the newly created sub task.

How can I accomplish this?


I tried with another For clause, but it doesn't seem to pick up that a sub task has just been created and returns an error that no issue had been created by my rule.

 

Here's my current state of the rule:

Screen Shot 2020-08-14 at 9.37.11 PM.png

1 answer

1 accepted

0 votes
Answer accepted

Hi @Krzysztof Kiser 

I can see what you mean.

I tried to use a second Branch based on most recently created / all created issues from within the rule - which provides the error that no issues have been created.

I assume this is because the first branch moves to a related issue - rather than actioning against the trigger itself.

-----------------

I did find a workaround though using JQL.

Below your original rule, add as a component...

  • Branch: JQL (type of related issue) - JQL: issuetype = Sub-task and parent = HOME-1 and createdDate >= -1m and createdDate < 0m
  • Action: Comment On Issue - <<Comment Text>>

^ As long as no other sub-task is created for HOME-1 in the same minute, it should function as expected!

-----------------

Let us know if this works for you :)

Ste

@Stephen Wright _Elabor8_ thank you very much for this. It will work very well for me. 

One more questions, perhaps you'd know. 

When setting up the comment action inside Jira Automation, there is an option to uncheck if I don't want to send a notification for this comment. 
It says you can only do this for public comments, but my comment visibility is set to pubic and the check box is inactive for me. 

Screen Shot 2020-08-15 at 11.37.06 AM.pngAny idea on how to fix this? 
I've already red the Jira issue they refer to, but it doesn't seem to answer my question. 

Hi @Krzysztof Kiser 

I don't see this option - although I'm using Jira Cloud.

It might be that this a Service Desk option, as JSDSERVER-5599 appears to relate to an issue between internal and customer-facing comments (which might be what public refers to), as opposed to comment security within Jira issues.

Ste

@Stephen Wright _Elabor8_you're probably right that this option is only for Service Desk. That's a shame though, I think it would be very useful for non service desk users as well.

Anyway, thank for the help.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

New Cloud Apps Roundup - Spring 2021

Atlassian's marketplace partners have had a very productive start to 2021! Since our last roundup, our developer community has added over 160 new cloud apps to the Atlassian Marketplace to help you...

195 views 3 19
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you