youngmon/atlassian-qna huggingface dataset:
Auto Add Comment when Assignee Changes
Asked by Richard Turnbull:

Hi there

Any help appreciated!

We are using Jira Cloud; oftentimes the Assignee of a ticket may change. Is there a way to track these changes - I'm thinking some way to auto add an internal comment to the ticket to say "Assignee changed from XXX to YYY" or similar.

Or maybe this information already sits somewhere that I am unaware of.

Thanks in advance for any clues...

Richard


Answers:
author: Manoj Gangwar
body: > Hi [@Richard Turnbull](/t5/user/viewprofilepage/user-id/4545571)

Welcome to the community!

Here's how to set up an automation rule to log changes in the Assignee:

1. **Navigate to Project Settings** : Go to your project and select **Project settings** in the sidebar.

2. **Select Automation** : Find and click on the **Automation** option.

3. **Create a New Rule** : Click on **Create rule**.

4. **Select Trigger** : Choose the **Field value changed** trigger and select **Assignee** as the field.

5. **Add Condition (Optional)**: You can add a condition to check if the issue is in a specific status or project, depending on your needs.

6. **Add Action** : Choose the **Add comment** action. In the comment field, you can use smart values to include the old and new Assignee values. For example:  

   Assignee changed from {{changelog.assignee.last}} to {{assignee.displayName}}.  

7. **Save the Rule**: Give your rule a name and save it.

8. **Test the Rule**: Change the Assignee on an issue to see if the comment gets added as expected.

comments: author: Kelly Arrey
body: Changes to the assignee (and everything else) live in the Issue History. What do you want to do with it? ![2024-09-24_08h38_17.png](https://community.atlassian.com/t5/image/serverpage/image-id/348973iA3AA3A6463A037B2/image-size/large?v=v2&px=999 "2024-09-24_08h38_17.png")
Clone issue containing form submission details from one project to another
Asked by Shivani Saran:

I created two projects; I want to clone issue from one project to another with form submission detail


Answers:
author: Clara Belin-Brosseau
body: Hello [@Shivani Saran](/t5/user/viewprofilepage/user-id/5597298) and welcome to Atlassian Community :)

If you're seeking for an easy way to **clone an issue across projects including form submission details,** I suggest trying our app [Elements Copy \& Sync](https://marketplace.atlassian.com/apps/1211111/elements-copy-sync-clone-jira-issues?tab=overview&hosting=cloud?&utm_source=community&utm_medium=answer&utm_campaign=question_2818794&utm_keyword=CS&utm_vendorID=4952) that allows you to clone and sync a full hierarchy of issues with all their content (summary, description, custom fields, comments, attachments, etc).

You can check our guide [here](https://doc.elements-apps.com/copy-and-sync-jira-cloud/jira-fields-copy-and-synchronisation#Jirafieldscopyandsynchronisation-Otherdataandadd-ons?&utm_source=community&utm_medium=answer&utm_campaign=question_2818794&utm_keyword=CS&utm_vendorID=4952).

The app is for **free during 30 days** (and it stays free under 10 users).
I need help to create a dashboard which would show one main epic and the sub epics linked to it
Asked by Saneeta Galbow:

I want to have an Epic which would be the main epic and then the sub epics that are linked to it.

I need help to create a dashboard which would show one main epic and the sub epics linked to it, however i am not getting any two dimension view for it.

Can anyone support me in solving this?


Answers:
author: Valerie Knapp
body: Hi [@Saneeta Galbow](/t5/user/viewprofilepage/user-id/5597752) , welcome to the Atlassian Community and thanks for your question.

This visualisation you want to obtain, does it have to be a dashboard? The reason I ask is because I think you could use the Timeline for this, to show the Epics and their dependencies between each other.

Please check out the documentation here and share your feedback. <https://support.atlassian.com/jira-work-management/docs/what-is-the-timeline-view-and-how-do-i-use-it/>

Cheers

comments: author: Saneeta Galbow
body: Thank you [@Valerie Knapp](/t5/user/viewprofilepage/user-id/4929946) for the warm welcome and the feedback. However the view i want to see is epic which has epic linked to it (more like a child epic- i know there is no concept called child epic).

But the add button only only child issues to it, which does not allow epic.

Hope i didn't confuse you more. :)

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


author: Saneeta Galbow
body: In the above example, Mega Epic is my main epic, i want epic of epics to be the child of Mega Epic


author: Valerie Knapp
body: Hi [@Saneeta Galbow](/t5/user/viewprofilepage/user-id/5597752) , thanks for your explanation.

If you have the Timeline enabled in your instance, it should mean you can also have a custom issue hierarchy, where you can create another level above the Epics for your Mega Epics.

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/348540iD99F73973DCEEF45/image-size/large?v=v2&px=999 "image.png")

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/348541i4F387B936A124D89/image-size/large?v=v2&px=999 "image.png")

As you can see here, I was able to obtain the configuration of a Mega Epic that has other Epics under it.

The only thing I would say about the custom issue hierarchy is that it is a global configuration, for the whole instance, so you will need to evaluate if this will interfere with the work that anyone else is doing.

I hope this helps you but if you have any other questions or feedback, please just let me know.

Cheers


author: Saneeta Galbow
body: Thank you [@Valerie Knapp](/t5/user/viewprofilepage/user-id/4929946) I do not have the custom issue hierarchy, have to check with the admins here. Thank you for your support for the steps explained.

However, do you think is there any other way to get this mega epic view? Apologies in advance if i am over asking here. Just trying to understand if we have any other options.

If not, thank you for the support :)


Tags: dashboard

epics
how do I add up story points value for all child stories to a feature using JIRA automation
Asked by Remya_Rajanandan:

please assist to form a rule to add up changes story points of child issues to the parent


Answers:
author: Jack Brickey
body: Hi [@Remya_Rajanandan](/t5/user/viewprofilepage/user-id/5597476) , there are a number of existing posts that might help you out so I recommend researching it a bit. Here are a couple I found.

[How-do-you-sum-up-story-points-to-the-epic-using-jira-automation](https://community.atlassian.com/t5/Automation-questions/How-do-you-sum-up-story-points-to-the-epic-using-jira-automation/qaq-p/1731595)

[Sum-up-story-points-to-an-epic](https://community.atlassian.com/t5/Jira-questions/Sum-up-story-points-to-an-epic/qaq-p/2515666)
Send Web Request to a Python Server through JIRA Automation
Asked by Akhila Rao:

Hello,

I have a Python server running with Flask. Currently it is running in my local machine.

Whenever there is a change in the due date, I want to send a web request to the server by sending some custom message.

When, i try to validate it gives me 408 error and when the automation is triggered, it gives me "Webhook request was sent, but timed out after 30 seconds on the remote host so the result is unknown (but most likely successful)."

When i send this via Rest Client, i recieve the message.

Does the endpoint have to be another Jira Rest End point or any endpoint can be used?

My webhook URL for the webrequest endpoint goes like this: <http://IP_Address:5000/post>


Answers:
author: Rick Westbrock
body: I would start by checking the log on the Flask side to see what it received in the web request from the automation rule and compare that to what the log shows from a successful request from a REST client (I assume that by client you mean something like cURL or Postman).

It would also be helpful if you share the configuration of your automation rule web request action including headers and body.
How to link multiple issues together on issue creation?
Asked by David:

Is it possible to automatically link tickets created by automation?

For example, when Ticket A is created, it generates Tickets B, C, and D. Establishing links between A and B, C, D is not an issue, but how can I create links between B, C, and D themselves?


Answers:
author: Ashok Shembde
body: Hi [@David](/t5/user/viewprofilepage/user-id/5596125) ,

Please review this add-on to determine if it is useful for your issue. Let me know your thoughts! [linking https://marketplace.atlassian.com/apps/1212259/bigpicture-project-management-ppm?tab=overview\&hosting=cloud](https://marketplace.atlassian.com/apps/1212259/bigpicture-project-management-ppm?tab=overview&hosting=cloud)


Tags: cloud

jira-service-management

jira-service-management-cloud

jira-work-management-cloud
Having trouble with custom field in Automation JQL
Asked by Yossi Geretz:

I have a field named StandupFlag which we use to flag items for discussion at the upcoming standup. I'm trying to write an automation script which will clear these flags en masse after we finish our standup meeting.

![standup.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/348054i3086F12B328A4739/image-dimensions/361x102?v=v2 "standup.jpg")

This little elegant snippet is what I finally found. I have no idea what it means, but it's the first thing I found which parses OK. The ID of the field is 10038. That is confirmed.

{{#issue.customfield_10038}}"{{.}}"{{\^first}} ,{{/}}{{/}} = "Standup"

Here's the error I'm getting:

DEV-54: "((**"Standup"** = "Standup") AND (key != DEV-54)) AND (project in (10001)) AND (updated \>= -3m)" - Field 'Standup' does not exist or you do not have permission to view it.

Note that the elegant little snippet of JQL has resolved to the string literal "Standup". Yes! This is the value of the StandupFlag field so obviously the StandupFlag was interrogated properly for that ticket to produce its value. So what's with the error message? I'm not referencing a field named Standup. I'm comparing a string literal "Standup" to the match string "Standup". This should evaluate to true!

Thanks for your advice!


Answers:
author: Trudy Claspill
body: I believe that the problem is in your JQL in the left side where you put the field name you have entered **Standup** but you have otherwise stated that the field name is **StandupFlag** . In the JQL you are not comparing two values to each other. You are telling Jira to compare the value you supplied on the right side to the value in the **field you identify by field name**on the left side.

comments: author: Darryl Lee
body: I think Trudy's nailed it. Maybe try flipping it around:

```
"StandupFlag" = {{#issue.customfield_10038}}"{{.}}"{{^first}} ,{{/}}{{/}}
```


Tags: custom-field

jql
How do i get the Original Estimate for the Task to sum up the original estimates for the subtasks?
Asked by Albert Edidiong:

I have tried this option, and it still does not work for me. Please help me

![2024-09-18_09h58_35.png](https://community.atlassian.com/t5/image/serverpage/image-id/347901i1BDA46FAD8C8DFE7/image-size/large?v=v2&px=999 "2024-09-18_09h58_35.png")


Answers:
author: Trudy Claspill
body: Hello [@Albert Edidiong](/t5/user/viewprofilepage/user-id/5563535)

Welcome to the Atlassian community.

What are the details of your Edit Issue action?

comments: author: Albert Edidiong
body: Hello [@Trudy Claspill](/t5/user/viewprofilepage/user-id/3569011)   

These are the details for Original Estimate, that i used  
{{issue.subtasks.Original Estimate.sum.divide(3600)}}m  

<br />


author: Trudy Claspill
body: In what way is that not working?

What value do you actually get in the field?

What value do you expect to get in the field?

What is the output in the rule execution log when the rule executes?
When Engagement End in "Past" change status to "SEND NPS"
Asked by Ian Herzing:

Hi there! I want to build an automation that moves my Jira ticket from the status:  

"ENGAGEMENT ACTIVE" to the status "SEND NPS"  

When my "Engagement End" is in the past (i.e. less than 'Today')

Any help is appreciated thank you!

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


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

What have you tried thus far to solve this need?

If you have created a rule and it is not working as expected, please post images of your complete rule and the audit log details showing the rule execution, and explain what is not working. Those will provide context for the community to offer better suggestions.

If you have not yet started a rule, I recommend you try to do so. Successfully using automation requires learning and experimentation. If you run into challenges, post images of the rule and audit log so the community can offer help.

Your rule could use JQL with a Scheduled Trigger to find the issues, and then a Transition Issue action for the update.

And to get you started on creating your rule, please refer to these documentation and example sources:

* <https://www.atlassian.com/software/jira/guides/automation/overview#what-is-automation>
* [https://www.atlassian.com/software/jira/automation-template-library#/rule-list?systemLabelId=all\&page=1\&pageSize=20\&sortKey=name\&sortOrder=ASC](https://www.atlassian.com/software/jira/automation-template-library#/rule-list?systemLabelId=all&page=1&pageSize=20&sortKey=name&sortOrder=ASC)
* <https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/>
* <https://support.atlassian.com/jira-software-cloud/docs/use-advanced-search-with-jira-query-language-jql/>

Kind regards,  
Bill
capture scheduler time in variable in jira automation
Asked by Anna:

Hi there,

i have a scheduled trigger that checks for statuses of specific issues.

The trigger runs as per CRON expression

every **0 0 9-14 ? \* THU.**

The last run should happen at 2 PM as per the scheduler. Is it possible to capture 2 PM as variable and use it in condition to see if it is a last run for the day? How we can capture the last run for the scheduled trigger in this case?

I need to implement logic of checking the statuses of relevant issues at last run and send email with final statuses at 2 PM.

Thanks,

Anna


Answers:
author: Bill Sheboy
body: Hi [@Anna](/t5/user/viewprofilepage/user-id/5337719)

Short answer: I do not believe that is possible, and even if it was, it may be unreliable.

The {{rule}} smart value provides the rule's name and the actor: {{rule.name}} and {{rule.actor}}. It does not provide other information about the rule. And, there is no public REST API yet to query the rule for other information.

And even if such information was present, there could be occasional cloud outages from Atlassian preventing the rule running exactly when you expected. Indeed, information from Atlassian about what happens to the execution of scheduled rules after an outage resolves is undocumented.

I suggest there are a couple of **workarounds** for your scenario, which are based on knowing what values are defined in the trigger:

1. Using {{now}} check if the rule is running on / after some time around 2 pm, and then perform your final status checks.
2. Better still, use a second rule, triggered at some time after 2 pm to capture the final information for the day. One advantage of this approach is the rule can be run manually after an Atlassian outage, regardless of the current time of day.

Kind regards,  
Bill

comments: author: Anna
body: Hi Bill,

I was also thinking on using {{now}} as there are some date function for automation to try. I will try your suggestions. Really surprised on how deep your knowledge runs on these topics. Thanks a lot for your response!
Create automation for auto closed
Asked by Anna Nguyen:

Hi everyone,

Please help me this case for Jira Service Management

I would like to create an automation, specifically: The status of a ticket will be automatically changed from Resolved to Closed after 3 days, and when customers reply to those Closed tickets, the system will automatically create a new Jira ticket for that issue to have the correct contact reasons.

Thanks


Answers:
author: Jakub Koc
body: Hi Anna,  

[This article](https://confluence.atlassian.com/jirakb/automation:-issue-inactivity-follow-ups-and-closure-1130375679.html#:~:text=Using%20Automation%20and%20Service%20Level%20Agreements%20(SLAs)) should help you customize your automation, and [this](https://confluence.atlassian.com/jirakb/configuring-jira-to-prevent-comments-on-closed-issues-1387599245.html#:~:text=This%20behavior%20is%20due%20to,permission.) should help you set up creating new ticket when commented on closed.

Hope that helps:)

comments: author: Anna Nguyen
body: Thanks a lot [@Jakub Koc](/t5/user/viewprofilepage/user-id/5446949)

This is exactly what I need, I will follow the instructions, and If I have any inquiries, please help me :)
Automatically transition parent when child and grandchild are transitioning
Asked by May Ovdat:

Hi community

I have the following hierarchy -

Epic called A (hierarchy 1)  
Task called B (hierarchy 0)  
Subtask called C (hierarchy -1)

I opt to have automation, that once an issue of any hierarchy level (besides 1) transitions to in progress, the issue above it transitions as well.

This is the automation I created -

![image.png](/t5/image/serverpage/image-id/347076i700377B33E319B50/image-size/large?v=v2&px=999 "image.png")

Once I transition subtask C, Task B transitioned as well, but it didn't transition Epic A as I hoped it would.  

I assume it didnt work since the transition of B was triggered by automation and not actual transition by user?

Please help me create an automation that will cover grandchild -\> grandparent  

Thanks!


Answers:
author: Arkadiusz Inglot
body: Hi,

Please navigate to Rule details, and make sure:

*Check to allow other rule actions to trigger this rule. Only enable this if you need this rule to execute in response to another rule.*

is checked. This allows a automation rule trigger another rule.

comments: author: May Ovdat
body: great thank you!!!!!!


Tags: cloud
Configure outgoing webhook using Automation for JIRA
Asked by Dorene Watson:

Hello,

I'm trying to set up an Outgoing Webhook to an external system using Jira Automation. Webhook gets posted successfully, but I get an error message that the webhook is not registered.

Does anyone know if this means that it's not registered on the Jira side or on the external system?

Screen shot with details is below. Thanks in advance!

Dorene

![Screenshot_11-9-2024_155444_enterprisejira-dev.frb.org.jpeg](https://community.atlassian.com/t5/image/serverpage/image-id/346933iA00F85A597753976/image-size/large?v=v2&px=999 "Screenshot_11-9-2024_155444_enterprisejira-dev.frb.org.jpeg")


Answers:
author: Rick Westbrock
body: I think that must mean the webhook on the external system since the Send Web Request action in the automation is not a webhook but is making an outbound call. Based on the HTTP 400 response my first thought is to check the URL of the external system's webhook to see if there's a typo.


Tags: datacenter

jira-software

webhooks
I want to create a total (sum) for a custom field (Jira Data Center version)
Asked by Stuart Wosika:

Hi guys,

* I have a custom field called "Risk Score" which holds a number
* This custom field is linked to an issuetype = Risk
* On triggering of an update to this issuetype
* I want to get all risks
* I want to then add up the total for all of the risks "Risk Score"
* Then use this total to update a field or pass to an email for example

So I:

* I tried to create a branch (For JQL)
  * I tried smart value "lookupIssues" with sum but although I do not get an error when running the rule, sum does not seem to do anything:
    * {{lookupIssues.customfield_11139.sum}}
  * I created a variable to store the total but could not get this to work as could not work out how to update the variable

Just trying to do something I thought would be simple. I must be missing something. Can anyone help me with an example rule please?


Answers:
author: Stuart Wosika
body: Hi guys, the documentation suggests the following but is not clear. You cannot use properties such as sum and max with custom fields in a Jira Automation rule (Jira Data Center platform). There is a ticket open with Atlassian that relates to this issue but even that is not clear on which properties are not supported.

I found another article that identified a possible workaround is to use the ACTION "send web request". This is where (in my use case) I use the search method (API) and JQL to query Jira via the API. I have now got this working and I am now able to sum up a field (value) for a number of issues successfully.

FYI

1. Action : Send web request

2. "Send web request" configuration:

Webhook URL : https://\<your domain\>/rest/api/2/search/

Headers: Authorization Bearer \<PAT id you have created in Jira\>

Accept application/json

HTTP Method: Post

Webhook Body (custom data):

{

"fields": \[

"summary",

"status",

"customfield_11139"

\],

"jql": "project=NPR and issuetype=risk"

}

NOTE: You can use any API call GET or POST. The above returns all issues of type risk

for a specific project

3. Now sum up the custom field "Score Risk" which is field customfield_11139. There are

multiple actions where you can do this. I am showing example using "Send email"

Content:

Total Risk Score = {{webhookResponse.body.issues.fields.customfield_11139.sum}}

Complete Payload Response =

{{webhookResponses}}

Hope this helps someone in the future.

Regards.

Stuart.