youngmon/atlassian-qna huggingface dataset:
How to link my tasks to a story in a manual triggered automation rule
Asked by Pavani Chintakrindi:

Hello,

Could you please suggest me how to link task to a story.

I have used manual trigger automation in concfluence, there are different loops.

1. Loop 1 creates a story

2. Loop 2 creates a task

3. Loop 3 creates a task

Now, I wanted to link Loop 2 and Loop 3 (Tasks) has to be linked to Loop 1 (Story)![000103.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/306025i4EDA501F02116A5D/image-size/large?v=v2&px=999 "000103.jpg")


Answers:
author: Bill Sheboy
body: Hi [@Pavani Chintakrindi](/t5/user/viewprofilepage/user-id/5280229)

For a question like this, please post an**image of your complete automation rule**, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected. Those will provide context for the community to offer ideas. Thanks!

Until we see those...

What problem are you trying to solve, as that is unclear from your question and the partial rule image shown. That is, why do this?

What do you mean by "Loop" in your question?

In your rule image, you have a condition which compares {{userInputs.SystemNumber}} to itself. Why is that done?

Kind regards,  
Bill
Mention a JIRA user not in the story
Asked by John McConnell:

Hello,

I am a newbie to Project Automation.

I have two issues. I can't seem to find the correct way to display the values.

1. I would like to mention a JIRA user \[\~myid\] in a comment (automation) and display the name value which is not part of the story, any fields, like assignee, reporter, etc.

Example:

Hello {{issue.dev assignee.displayName}}, we have assigned this story back to you because the User Validation/UAT has been completed.

Thank you!

cc: \[\~myid\]

2. How do you get the display value for \[{Fix Version/s}}?

Thanks in advance.


Answers:
author: Bill Sheboy
body: Hi [@John McConnell](/t5/user/viewprofilepage/user-id/3308879)

If you have the account ID for the user, you may mention them arbitrarily, without any field references. However to get their display name, they would either need to be set to a field (and so creating a user object reference) or call the REST API functions with the Send Web Request action to get their user data.

For your second question, there are several attributes available for the Fix Version smart value: <https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--issue.fixVersions-->

Please note this field can contain multiple versions, so decide how you want to display / show them. For example the default would be a comma-separated values list for the names of multiple versions:

```
{{issue.fixVersions.name}}
```

Kind regards,  
Bill

comments: author: John McConnell
body: Hello Bill.

I was successful in both instances.

Thank you for the prompt reply.

-john


author: Nick Nader
body: Hi  

Welcome to Jira Project Automation!  

[This article](https://support.atlassian.com/cloud-automation/docs/jira-smart-values-users/) should help depending on the logic behind which user you want to CC on that automated comment  

I think you are shooting for a specific user so I'd use this one:  

\[\~accountId:their account ID\]

As for fixed version, this is how you display the name of it:  

<br />

{{issue.fixVersion.name}}

Here is the[doc](https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--issue.fixVersions--) showing all the other display options for fix version as well as any other smart values you can use in automation rules  

<br />

Hope this helps,  

Nick from Isos
How to create automation to trigger in Squadcast?
Asked by Namrata Kumari:

Hi,

I want to create an automation such that if a specific field is edited/updated in the Jira Service desk ticket, it should create an incident in Squadcast.  
Any suggestions on how to do it?

Thanks!


Answers:
author: Bill Sheboy
body: Hi [@Namrata Kumari](/t5/user/viewprofilepage/user-id/5411437) -- Welcome to the Atlassian Community!

I am not using Squadcast, and that appears to be a marketplace addon for Jira. Perhaps check with their documentation or support team to learn more about doing what you ask: [https://marketplace.atlassian.com/apps/1221041/squadcast-for-jira-cloud?hosting=cloud\&tab=support](https://marketplace.atlassian.com/apps/1221041/squadcast-for-jira-cloud?hosting=cloud&tab=support)

Until then...

If the app has a REST API interface, perhaps an automation rule could call one of the functions using the Send Web Request action. To learn more about calling a REST API function from a rule, please see this how-to article: <https://community.atlassian.com/t5/Jira-Software-articles/Automation-for-Jira-Send-web-request-using-Jira-REST-API/ba-p/1443828>

Kind regards,  
Bill
Automation rule to add/remove labels periodically
Asked by Darrel Jackson:

Hi all,

We have a bi-weekly meeting where we create meeting agendas via the meeting notes template. We create agendas for 2-3 meetings in the future. We use a page properties report to show the next meeting agenda and we apply a label of "upcoming" to the next meeting agenda page.

We manually add "upcoming" label to the next page and remove "upcoming" from the previous page.

However, maintaining the "upcoming" label is cumbersome and error prone.

I'm trying to construct an automation rule to automatically update the label but I'm struggling.

I started with a scheduled trigger to check the labels daily. But then I tried to find pages with the "upcoming" label but the Lookup Pages rule has very few filters and "label" isn't one of them.

Can anyone help?


Answers:
author: Kseniia Trushnikova
body: Hey [@Darrel Jackson](/t5/user/viewprofilepage/user-id/205638),

Try to use **Branch rule / related entities** with cql "label = upcoming" instead of the Lookup pages action:

![Screenshot 2024-03-07 at 14.15.43.png](https://community.atlassian.com/t5/image/serverpage/image-id/310808iB9A50EDAC5573D96/image-size/large?v=v2&px=999 "Screenshot 2024-03-07 at 14.15.43.png")

Will it work?

comments: author: Darrel Jackson
body: That answer is very helpful. It has opened my eyes up to CQL - which I'd not used yet - even though I use JQL regularly. I still can't come up with a solution but I do have a few more tools now.


Tags: confluence
Track the time from subtasks on reports
Asked by Roxi Stanciu:

Hello,

In my team we want to implement to have Stories with subtasks when it is needed. This would mean that for Story1 we can have Subtask 1, Subtask 2.

For Subtask1 - one developer will work and add the working hours

For Subtask 2 - another developer will work and add the working hours.

How can I include in my Time Report to have the time from the subtasks for each member? I know I can include tasks at story level, but for us it is needed to see the working hours for each employee as you can if you log time on a task issue or a story or a bug.

Thank you!


Answers:
author: Rilwan Ahmed
body: Hi [@Roxi Stanciu](/t5/user/viewprofilepage/user-id/5423352) ,

Welcome to the community !!

You need a third party plugin for this report. You can search Atlassian marketplace (<https://marketplace.atlassian.com/search?query=timesheet>). These plugins might be paid.

Personally I suggest [Tempo timesheet](https://marketplace.atlassian.com/apps/6572/timesheets-by-tempo-jira-time-tracking?hosting=cloud&tab=overview)

comments: author: Roxi Stanciu
body: Hi! Thank you very much!


author: Jack Brickey
body: Hi [@Roxi Stanciu](/t5/user/viewprofilepage/user-id/5423352) , it appears that you want time reports by user. If this is the case you may find the following article of interest. Long story short ,natively this isn't something that jira handles. You would need to look at a third-party add-on app. This is outlined in the article explaining that an old gadget was discontinued for performance (?) reasons.

[jira-timesheet-reports-and-gadgets-removal-from-jira-cloud](https://confluence.atlassian.com/jirakb/jira-timesheet-reports-and-gadgets-removal-from-jira-cloud-792504481.html)

comments: author: Roxi Stanciu
body: Hello! Thank you for your fast response.
Trigger on Comment Added OR Edited (Jira Cloud)
Asked by Eric Tiffany:

I want to create an automation that triggers on either adding OR editing a comment. In Jira Cloud, the "Multiple Issue Events" would seem a likely place to look, but the options include neither comment added nor comment edited.

How to create ONE RULE that would operate on a comment (whether added or edited).

The goal is to extract @ mentions and add these to the Watchers list -- I have a rule that can do this but I seem only to be able to trigger it from EITHER comment added or comment edited.


Answers:
author: John Funk
body: Hi Eric,

Yes, you are correct that you would need two rules. Is there a particular reason that you want to combine them? (Other than the obvious one of less maintenance).
How to I do Do... While/Until Loop ?
Asked by dhanarajanr:

Hi All,

I am sending a web request(POST) to trigger the Bitbucket pipeline using Automation for Jira and since it is async API, I have to loop and do a subsequent web request(GET) to get the pipeline completion status. Can I achieve this? if yes kindly explain.

Thanks in advance.


Answers:
author: Kalyan Sattaluri
body: \*Theoretically\* - you can write a new rule which does this for you.

* Trigger -\> incoming webhook (with your pipeline ID in your payload, count = 0)
* Action -\> Send web request to bitbucket to get status using ID from webhookData.
* If Condition -\> response has succeeded, you move on to do your next steps.
* Else Condition -\> if count is \< \*some number\* (so you dont do this indefinately)
* Action - call the same webhook again (with the same ID in your payload, count = incremented count)

Once you have this new rule setup, you modify your original rule and after your POST action, you call this webhook rule and send your pipeline ID in the payload with count = 0, so the above steps discussed can be done.

comments: author: dhanarajanr
body: Thanks [@Kalyan Sattaluri](/t5/user/viewprofilepage/user-id/5312306) , this will suit my need. brillant


author: Bill Sheboy
body: Hi [@dhanarajanr](/t5/user/viewprofilepage/user-id/5425295) -- Welcome to the Atlassian Community!

No, that is not a capability of automation rules.

What problem are you trying to solve by doing this? That is, **why** do this? Knowing that may help the community to offer better suggestions.

Until we know that...some potential work-arounds are:

* Perform the polling / waiting with another service outside of Jira, and then call Jira REST API functions to perform what you needed to do in an automation rule
* Perform the polling / waiting with another service outside of Jira, and then use that to trigger a rule using a webhook
* Using a scheduled trigger rule, and a built-in stopping condition check, periodically call your REST API function. **I recommend against this approach** due to the possible impacts to automation usage, service limits, etc.

Kind regards,  
Bill

comments: author: dhanarajanr
body: Thanks [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313) for your response and approach options. I am planning to use the incoming webhook option suggested by [@Kalyan Sattaluri](/t5/user/viewprofilepage/user-id/5312306) as it suits my situation


Tags: cloud
How to get email notification if my name is in a Jira comment?
Asked by Gil:

Hi all,

I'm trying to build an automation but I'm unable to figure out how can I place a condition that checks if my name is in a Jira comment.

The comment can either have my name appear as Gil or as a mention with the @ sign.

In both ways I want to capture it and IF TRUE, do something.

The trigger is when a comment is made.

Any ideas?


Answers:
author: Kian Stack Mumo Systems
body: You would need to write a condition that will perform a regex search to look for either "gil" or your account ID. Do you know how to find the account ID?   

Thanks,

<br />

Kian

comments: author: Bill Sheboy
body: Hi [@Gil](/t5/user/viewprofilepage/user-id/1264836)

Just checking if this answered your question. If so, please mark this one as "answered" to help others find solutions faster. If not, provide any additional information to help the community provide suggestions.

Thanks, and kind regards,  
Bill


author: Igor Medeiros - Modus Create
body: Hi [@Gil](/t5/user/viewprofilepage/user-id/1264836)

This is Igor from Modus Create and I believe that our app Notification Assistant for Jira can solve this problem for you.

Our documentation is available at <https://atlasauthority.atlassian.net/wiki/spaces/NAFJC/overview>.

Feel free to get in touch with our team!

comments: author: Bill Sheboy
body: Hi [@Igor Medeiros - Modus Create](/t5/user/viewprofilepage/user-id/5241325)

Rather than posting the same boilerplate text promoting your product for every question which is email-related, even for very old questions, please consider instead:

* reading the question asked
* explaining how your product could help with the specific need

Thanks, and kind regards,  
Bill


Tags: jira-cloud
Change Issue Status Upon Another One Getting Linked to it
Asked by Damien:

***edit:***Never mind, I figured it out by adding an additional "Transition issue" action to the automation that is duplicating the tickets, so upon duplicating, the status of task A is now being correctly changed to "In Progress". This request can now be closed.

Hey guys, here is my use case:

I have two projects - project A and project B.

When a task from Project A reaches its due date, it gets duplicated onto Project B and a link of the "has to be done before / after" type is created between the two. Task B has the "has to be done before" and task A has the "has to be done after".

My goal is to create a simple automation that changes the status of task A to "In Progress" upon getting linked to Task B.

The rule is set to only operate within project A as Task A that needs to be affected by the automation resides in it.

I've tried different things, but none of them seem to work. Can you please give me a hand with this one? One would think it's something very straightforward, but here I am :D


Answers:
author: Damien
body: ***edit:***Never mind, I figured it out by adding an additional "Transition issue" action to the automation that is duplicating the tickets, so upon duplicating, the status of task A is now being correctly changed to "In Progress". This request can now be closed.

Hey guys, here is my use case:

I have two projects - project A and project B.

When a task from Project A reaches its due date, it gets duplicated onto Project B and a link of the "has to be done before / after" type is created between the two. Task B has the "has to be done before" and task A has the "has to be done after".

My goal is to create a simple automation that changes the status of task A to "In Progress" upon getting linked to Task B.

The rule is set to only operate within project A as Task A that needs to be affected by the automation resides in it.

I've tried different things, but none of them seem to work. Can you please give me a hand with this one? One would think it's something very straightforward, but here I am :D


author: Kseniia Trushnikova
body: Hey [@Damien](/t5/user/viewprofilepage/user-id/5425510),

That's great that you've found the solution!

Add the solution to your post replies and click the **Accept answer** button to mark the question as resolved. This will help other community users with the same question find the answer faster. Thank you.
Do we have any Automation to complete the sprint when assigned JIRA's completed
Asked by Sreenatha Reddy J:

I am searching for the automation to make the sprint complete automatically once the Jira's are done.


Answers:
author: Bill Sheboy
body: Hi [@Sreenatha Reddy J](/t5/user/viewprofilepage/user-id/4921563)

Are you using Jira Cloud or Server / Data Center?

For Server / Data Center, please see the response from [@BHUSHAN PATIL](/t5/user/viewprofilepage/user-id/5097891)

For Cloud, there is no rule action to complete a sprint. Instead you could use try using the Send Web Request action and call the REST API function to update the sprint directly. Please note: I do not believe this will perform any of the things normally handled by the complete sprint dialog, such as moving issues to the next sprint.

Kind regards,  
Bill


author: BHUSHAN PATIL
body: Hi [@Sreenatha Reddy J](/t5/user/viewprofilepage/user-id/4921563) ,

Yes, Jira itself provides the ability to configure sprints to auto-start and auto-complete. For more details, follow the steps mentioned in the document below:

* [Configuring a sprint to auto-start and auto-complete.](https://confluence.atlassian.com/jirasoftwareserver/configuring-a-sprint-to-auto-start-and-auto-complete-1235848794.html)

Another solution is the "[Sprint Automation for Jira](https://marketplace.atlassian.com/apps/1225720/sprint-automation-for-jira?hosting=cloud&tab=overview)" app available on the Atlassian Marketplace. This app supports the automatic creation and completion of sprints, enabling you to move incomplete issues to the next sprint or the backlog as needed.

Also, if you feel my input help you please accept the answer.

Regards,  
Bhushan
Post to Slack when a new JPD Insight is created
Asked by Daniel Sim:

Is it possible to post to Slack when a new JPD Insight is created? All of the triggers I can see revolve around Ideas.


Answers:
author: Bill Sheboy
body: Hi [@Daniel Sim](/t5/user/viewprofilepage/user-id/5425357) -- Welcome to the Atlassian Community!

It appears [@Tanguy Crusson](/t5/user/viewprofilepage/user-id/502312) answered that same question here:

<https://community.atlassian.com/t5/Jira-Product-Discovery-questions/Post-Insight-in-a-slack-channel/qaq-p/2179495>

Kind regards,  
Bill

comments: author: Daniel Sim
body: Thanks Bill, this was a year and three months ago, so curious if anything has changed. My understanding is that insights are not available by the API as they changed how this worked.


Tags: cloud

insight

jira-product-discovery
Add new status for Fix versions
Asked by Yael Bichovsky:

How can I add a new status for Fix versions?

We have one team that should release the version and another team that should test it after the release.

So I need another status to use after the release (such as "Active" or "Approved").

Note: I'm not talking about the issues related to the version, but to the entire version itself,


Answers:
author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

Versions do not have a "status" in Jira-speak. Status is an indicator of where an issue is in its process.

So I'm assuming you are looking at the version attributes, which can be unreleased, released, or archived. Those three are there to tell you where the version is, and inform the board. The archived one simply means "can no longer be selected".

There's no way to add different attributes to versions, those three are hard-coded into the version fields.

comments: author: Yael Bichovsky
body: Thank you!

So instead, is there a way to have an automation on the issues related when version is archived?


author: Nic Brough -Adaptavist-
body: Yes, Automation has a trigger that picks up "version is updated", and I believe that can catch the change to archived.


author: Bill Sheboy
body: Hi [@Yael Bichovsky](/t5/user/viewprofilepage/user-id/5423337)

Just checking if this answered your question. If so, please mark this one as "answered" to help others find solutions faster. If not, provide any additional information to help the community provide suggestions.

Thanks, and kind regards,  
Bill


Tags: fix-version

status
How to compare {{userInputs}} with the selected input value in confluence automation
Asked by Pavani Chintakrindi:

I have to compare the input which is selected with the specific and create the jira issue accordingly.![000102.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/304940iD5A05F2D290706A9/image-size/large?v=v2&px=999 "000102.jpg")![000101.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/304941i3DA1C2E2F0004A11/image-size/large?v=v2&px=999 "000101.jpg")![000100.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/304942iCB8EB8AE6B86796A/image-size/large?v=v2&px=999 "000100.jpg")![000099.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/304939iEF66750C13BD32AA/image-size/large?v=v2&px=999 "000099.jpg")


Answers:
author: Bill Sheboy
body: Hi [@Pavani Chintakrindi](/t5/user/viewprofilepage/user-id/5280229)

There should only be one set of double-curly brackets around the smart values in an expression. And it appears in your Manual Trigger's user inputs that you entered a variable name of:

{{SystemNamenumber}}

When naming a variable, do not include the double-curly brackets. Instead use just the name:

SystemNamenumber

Later in the rule, when using the smart value, it is referred to as this:

{{userInputs.SystemNamenumber}}

Kind regards,  
Bill

comments: author: Pavani Chintakrindi
body: Thanks alot it's working now.


author: Bill Sheboy
body: Awesome; I am glad to learn it is working.

Please consider marking this question as "answered". That will help others with a similar need find solutions faster in the future. Thanks!
Create Xray test execution using existing tests(testset) for different stories
Asked by Maxim Borysenko:

Hi,  

my task is:  
create an manual trigger that will create an test execution for story which will use already exisiting xray tests or test sets.  

I want to use the tests or test sets as a template with all information inside for new test execution.  

Important:  

The test should be fully filled with info  

currently:  
i can trigger the automation from my story and it will create a new test execution but it will not use already existing tests. Is it possible to use them as a template and how can i setup that?  

If you need more info or context, please write to me!  

Best regards  
Maksym  

<br />

![pic 1.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/304853i5C23176D21F3991D/image-size/large?v=v2&px=999 "pic 1.PNG")


Answers:
author: Bill Sheboy
body: Hi [@Maxim Borysenko](/t5/user/viewprofilepage/user-id/5373406)

How would you identify the existing tests for reuse? If you can find them with a JQL query, the rule could branch to them for linking / cloning.

Kind regards,  
Bill


Tags: xray