youngmon/atlassian-qna huggingface dataset:
Is there any issue trigger option while cloning a ticket
Asked by Jacob Rajesh:

I would like to create a automation rule for the tickets that are being cloned. So Is there any specific issue trigger option?


Answers:
author: Rebekka Heilmann _viadee_
body: Hi [@Jacob Rajesh](/t5/user/viewprofilepage/user-id/2573734) and welcome to the Community!

No - there is no specific trigger. You could just use the "Issue created" trigger and add a condition that checks for related issues though.

When you clone an issue, it automatically is related to the origin issue with the "clones" relation, You can check for the existence of that.

The only thing that might happen is if the Linked Issues option is available in some Create-Screens, a person might add the Clones-Relation manually and trigger the rule by accident. I find that quite unlikely though.


author: Luka Hummel - codefortynine
body: Hi [@Jacob Rajesh](/t5/user/viewprofilepage/user-id/2573734) and welcome to the community!

If you are willing to try a third-party app, you can try our [Deep Clone for Jira](https://marketplace.atlassian.com/apps/1218652?utm_source=atlassian&utm_medium=referral&utm_campaign=deepj-new-reach-com-2757101).

Deep Clone can trigger a [Jira Automation Incoming Webhook](https://support.atlassian.com/cloud-automation/docs/jira-automation-triggers/#Incoming-webhook) on the issues created by Deep Clone. Just create a Webhook (using the first option, "Issues provided in the webhook HTTP POST body") and adjust Deep Clone with the Webhook URL.

![jira-automation-webhook](https://community.atlassian.com/t5/image/serverpage/image-id/336651i6B3DF08945977C72/image-size/large?v=v2&px=999 "jira-automation-webhook")
Automation: Assignee's LastComment into CustomField
Asked by Robert Arcolas:

Hi All,

I'm using Jira Automation (in Cloud) and trying to assign the last comment the Assignee made into a custom field.

So far I can use {{issue.comments.last}} to assign the last comment into the customfield, however i need it to specifically be the assignee's last comment.

Thanks for your help


Answers:
author: Trudy Claspill
body: Hello [@Robert Arcolas](/t5/user/viewprofilepage/user-id/1643722)

Welcome to the Atlassian community.

Are you trying to do this retroactively, for issues where comments already exist?

As a go-forward solution you could implement a rule that is triggered each time a comment is added, check if the comment author matches the assignee, and then copy the comment to the custom field.

comments: author: Robert Arcolas
body: Hi Trudy,

Thanks for the suggestion! I didn't think to do it that way but I was able to get it working after reading your response.

Greatly appreciated!


author: Nicolas Grossi
body: [@Robert Arcolas](/t5/user/viewprofilepage/user-id/1643722) welcome! You might see the following thread: <https://community.atlassian.com/t5/Jira-questions/Automation-how-to-copy-the-last-comment-of-an-issue-to-a-custom/qaq-p/1768691>

Nicolas


Tags: assignee

comment

incoming-webhook
A4J Data Center: Lookup issues JQL doesn't accept linkedIssues("{{issue.key}}")
Asked by Daniil Lazarev:

Subj

I tried both #1  

```
issue IN linkedIssues("{{issue.key}}") and Project=PROJECTNAME
```

and #2  

```
issue IN linkedIssues("{{triggerIssue}}") AND project = PROJECTNAME
```

and confirmed the value of {{issue.key}} and {{triggerIssue}} in a separate Log Action.  
But the log for Lookup issues says:

A search during custom value definition found no issues.

Some notes: JQL with actual issue key works as expected. Linked issue and triggerissue are in different projects, but the rule is applied to both. I can't validate query in the Lookup Issue pane when inserting #1 or #2 in it. If I insert an actual issue key, the validate query works as expected. The rule trigger is When Issue Transitioned.

Could someone please confirm it and maybe share a workaround?


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

What is the scope of your automation rule: single project, multiple-projects, or global?

Single project-scope rules can create (or clone) issues into other projects, but they cannot view or edit the issues in other projects. That takes a multiple-projects or global scope rule. Your Jira Site Admin will need to change the scope of a rule.

If that does not help, please post images of your complete automation rule and the audit log details showing the rule execution. Those will provide context to help explain this symptom.

Kind regards,  
Bill

comments: author: Daniil Lazarev
body: Hi [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313) !

Thanks for your comment.

Shortly: this rule stops working when our Jira Instance starts freezing due to hitting database max pool connections. We'll resolve the issue of the limits first and after that, I'll update this topic.


author: Bill Sheboy
body: Hi [@Daniil Lazarev](/t5/user/viewprofilepage/user-id/4546894)

I am following up to learn if you solved this question yet. Thanks!

Kind regards,  
Bill


author: Maximilian Flo?
body: I have a global rule but the automation does still not work because of the lookup issues section.

It seems like smart values can not be used in lookupIssues.

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


author: Bill Sheboy
body: Hi [@Maximilian Flo?](/t5/user/viewprofilepage/user-id/4341004)

Please try using {{issue.project.key}} instead of {{issue.project.name}} in the JQL expression.

Smart values can be used in the JQL for the Lookup Issues action. There are exceptions with dynamic smart values, and they may be worked around by first storing the JQL in a created variable to force the evaluation order and then using the variable in the Lookup Issues action.

Kind regards,  
Bill


Tags: data-center

linkedissues

lookup-issues
How do I Auto-schedule a task only for workdays ?
Asked by Naven Kumar:

I want to create an automation, which auto schedules tasks (Create an issue + assign it to the team) only on weekdays.   

Currently there's no option to choose for weekdays in the "Occurence" field of the automation.   


Answers:
author: Hans Polder
body: [@Naven Kumar](/t5/user/viewprofilepage/user-id/5540560) ,

I think you should leave the occurrence at 'Weeks', and simply select all the days in the week you want it to work:

![Screenshot 2024-07-15 143050.png](https://community.atlassian.com/t5/image/serverpage/image-id/335649i91185333F07CFA66/image-size/large?v=v2&px=999 "Screenshot 2024-07-15 143050.png")

comments: author: Naven Kumar
body: This works! Thanks Hans for the solution.


author: Bill Sheboy
body: Hi [@Naven Kumar](/t5/user/viewprofilepage/user-id/5540560)

If the answer from Hans solved this, please consider marking the question as "answered". That will help others with similar needs find solutions faster in the future. Thanks!

Kind regards,  
Bill


Tags: cloud

jira-work-management

jira-work-management-cloud
Comment when Linked Issue Transitioned
Asked by Shaminiarthi Desingurajan:

Legacy Automations will no longer be supported by Atlassian. The most used [Legacy Automation](https://proactionca.ent.cgi.com/jira/servicedesk/admin/CANASOP/automation) in SD projects is "Comment when Linked Issue Transitioned".

What is the equivalent in Automation for Jira?


Answers:
author: John Funk
body: Hi Shaminiarthi - Welcome to the Atlassian Community!

We don't have access to your instance to look at things. Can you post a screenshot of the rule?


Tags: cloud
Automatic Sprint report when sprint complete
Asked by Fahad Mubarik:

Hi I want to output the sprint report that shows the progress of sprint which include completed/in Progress/TO do and not completed tasks.

I have used Sprint report to out the progress however i want every time when i manually mark the sprint as closed automatically report is generated that shows progress of sprint.


Answers:
author: Bill Sheboy
body: Hi [@Fahad Mubarik](/t5/user/viewprofilepage/user-id/5515269)

I recommend trying to create an automation rule, triggered on Sprint Completed, and then use the Lookup Issues action with JQL to gather the issues in the sprint. With those, you can produce the counts you describe.

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/>

If you need to send a graphical view, your rule could use the sprint information from the trigger to send a link to the sprint report page in Jira.

Kind regards,  
Bill
Send teams message with release notes after successfull production deployment
Asked by Eric Forthofer:

Hello community, hope you can help me!  

I want an automation that sends me all the issues, bugs, etc which are connected in a successfull deployment in production stage and send that all in one teams message as a release note. Do you have any ideas or have you such an automation running?


Answers:
author: Sujeet Pathak
body: Hi [@Eric Forthofer](/t5/user/viewprofilepage/user-id/5543789) , We have built an app in the Atlassian marketplace that helps users automate their entire release notes process - [Automated release notes \& reports for Jira](https://marketplace.atlassian.com/apps/1215431/ai-powered-automated-release-notes-for-jira?hosting=cloud&tab=overview).

Specific to your use case, you can post release notes to a specific Microsoft Teams channel through email. One can easily get a dedicated email address to particular channels in MS Teams. Configure it within ARN's email rule action. That's it. You will start receiving release notes directly in MS Teams. You can automatically trigger the email rule action through different triggers such as version release, sprint completion, webhook, etc.

If you are on the cloud, we even have a free version of this app to get you started quickly. Do check out and [reach out here](https://amoeboids.atlassian.net/servicedesk/customer/portal/15) if you need any further information.

<br />

Thanks,  
Sujeet

comments: author: Eric Forthofer
body: Thanks for info i think we will try your solution.


author: Move Work Forward
body: Hi [@Eric Forthofer](/t5/user/viewprofilepage/user-id/5543789)

Thanks for asking.

How do you do the deployment?

Where do you store the release notes?

Thanks,  
Leo

comments: author: Eric Forthofer
body: We do deploy our code in Azure DevOps and with the successful build on production i want to trigger an automated release note with all issues in that build or till the production stage.


author: Move Work Forward
body: and I assume you have all your issues in Jira, correct?

If so, you can use:

- Jira Releases feature - <https://support.atlassian.com/jira-software-cloud/docs/enable-releases-and-versions/>

- Assuming you are using something like [Azure DevOps for Jira](https://marketplace.atlassian.com/apps/1231122/azure-devops-for-jira?hosting=cloud&tab=overview) app to get builds/deployments info into Jira.

- You can send notification to Microsoft Teams using a Jira connector like [this one](https://marketplace.atlassian.com/apps/1216325/advanced-microsoft-teams-jira-connector?hosting=cloud&tab=overview).

- the message will include the link to the release (if you configure it) that will contain the release notes).

Another way could be: explore [Jira Automation](https://www.atlassian.com/software/jira/features/automation) (it support release notitications) and Teams event -\> you will need to code more.

Anyway, pls let me know if you want to jump on a zoom call to discuss this further.

Cheers,  
Leo
Asset Automation for inbound objects
Asked by Crystal Rouse:

I am trying to write an automation rule to update an attribute for inbound objects.

My IF Statement is:

object HAVING inboundReferences("Status" = "Active")  

I then need to set an attribute to the value of the referenced object's attribute.

Is there smart value syntax for this?  

I've tried ${objectname.fieldname}

also tried {objectname}.{fieldname}  

Thank You


Answers:
author: Hans Polder
body: [@Crystal Rouse](/t5/user/viewprofilepage/user-id/4230150) ,

Have you checked out <https://support.atlassian.com/cloud-automation/docs/jira-smart-values-insight/> ?


Tags: asset-management

atlassian-marketplace
JIRA Project Migration Between Workspaces
Asked by royhudayana:

Hello Community,

I need guidance on migrating a JIRA project from one workspace to another, including all historical data (cards/tasks). Could you provide a step-by-step guide or workaround for the export and import process?

Additionally, are there any plugins or third-party software recommended for this process? If so, what steps should be taken?

We have attempted to use the JIRA API, but it did not meet our expectations.

Thank you for your assistance.


Answers:
author: royhudayana
body: Note: Both are JIRA Cloud instances.


author: John Funk
body: Hi Roy - Welcome to the Atlassian Community!

Are these both Cloud instances? Or is one or the other DC or Server?

comments: author: royhudayana
body: Hi John,

Thank you for responding.  
Yes, both are JIRA Cloud instances. Do you have any ideas for this?  

Regards,


author: John Funk
body: Yes, we use the Revyz Data Manager for Jira app which is available in the Atlassian Community. You can clone one or several projects from one cloud instance to another, including configurations and data.


Tags: export

import

jira

project
Is it possible to create a loop in automation to create a number of tasks
Asked by Ward Schwillens_ Schwillie:

Hi there!

A question:

Is it possible to create a loop in an automation that runs until a condition is met?

I need something resembling a do ... while or do ... until logic, probably with a fail safe, as we do not want the rule creating kazillions of issues! ?

I would like to be able to use that feature to create a number of "Dummy" tasks as child issues within an epic.

Thank you for your insights!


Answers:
author: Bill Sheboy
body: Hi [@Ward Schwillens_ Schwillie](/t5/user/viewprofilepage/user-id/1028001)

What problem are you solving by creating those "dummy" tasks? That is, "why do this?" Knowing that may help the community to offer better suggestions.

Until we know that...

Any mistakes in such looping rules can have consequences. For example...

1. a simple rule mistake could halt all rule executions for your site for the rest of the month by consuming the automation limits for your licenses
2. long running rules could exceed the service limits, halting all rule execution for several hours
3. self-triggering rules may encounter the service limit for looping, and so halt that specific rule (i.e., 10 loops)

What version of Jira are you using (i.e., Cloud, Server, or Data Center), and if Cloud, have you considered your license level and products?

I ask those things because a webhook-based approach (as suggested by Mikael) can allow recursive looping to solve some scenarios, and potentially encounter items #1 and #3 above.

Another approach is to use a single rule with an advanced branch, driven by the contents of a list from a created variable. This would allow up to 100 items / issues. This type of rule could encounter items #1 and #2 from above.

Kind regards,  
Bill


author: Mikael Sandberg
body: Yes, that is possible, have a look at [this article](https://community.atlassian.com/t5/Jira-Service-Management-articles/How-to-create-dynamic-looping-in-Automation-for-Jira/ba-p/2293077) that describe how you can create a dynamic looping in an automation.
DevOps Automation for Jira Data Center
Asked by Aaron Gallaway:

Are there triggers available for DevOps Automation in Jira Data Center?


Answers:
author: Levente Szabo _Midori_
body: [@Aaron Gallaway](/t5/user/viewprofilepage/user-id/5540723) What type of triggers do you have in mind?

Have you looked into [Better DevOps Automation for Jira Data Center](https://marketplace.atlassian.com/apps/1224574/better-devops-automation-for-jira-free-git-svn-automation?hosting=datacenter&tab=overview)? This app together with [Better Commit Policy for Jira](https://marketplace.atlassian.com/apps/1213415/better-commit-policy-for-jira-git-subversion-and-more?hosting=datacenter&tab=overview) are filling the void for DevOps automation in DC, as much of Atlassian's efforts has been focused on Cloud.


Tags: devops
Jira Automation - Clone tickets and include attachments
Asked by Anth_Burnikell:

Hi is there a way via automation when cloning a ticket into a different project we can also copy over attachments?


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

What version of Jira are you using: Jira Cloud, Server, or Data Center?

For Jira Cloud, I confirmed this works:

* when you use the Clone Issue action
* select the *Attachment* field from the dropdown list
* select *Copy Attachment from Trigger Issue* in the options

Kind regards,  
Bill


author: Luka Hummel - codefortynine
body: Hi [@Anth_Burnikell](/t5/user/viewprofilepage/user-id/5361750)

If you are willing to try a third party-app, our [Deep Clone for Jira](https://marketplace.atlassian.com/apps/1218652?utm_source=atlassian&utm_medium=referral&utm_campaign=deepj-new-reach-com-2749364) can clone projects and issues, including their attachments. It's as easy as checking one box in the Deep Clone configuration.

![2024-07-16 16-18.png](https://community.atlassian.com/t5/image/serverpage/image-id/335899i656249DBD8DFEE0D/image-size/large?v=v2&px=999 "2024-07-16 16-18.png")


author: Clara Belin-Brosseau
body: Hello [@Anth_Burnikell](/t5/user/viewprofilepage/user-id/5361750)

If you're seeking for an easy way to **clone a ticket to a different project with the attachments** , you can try 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_2749364&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).

The app is compatible with Automation, you can check our guide [here](https://doc.elements-apps.com/copy-and-sync-jira-cloud/copy-an-issue-and-all-its-comments-or-attachments-?&utm_source=community&utm_medium=answer&utm_campaign=question_2749364&utm_keyword=CS&utm_vendorID=4952).

You can try the app for free during 30 days (and it stays free under 10 users).

Kind regards,

Clara


author: Nicolas Grossi
body: [@Anth_Burnikell](/t5/user/viewprofilepage/user-id/5361750) you might take a look at this thread: <https://community.atlassian.com/t5/Marketplace-Apps-Integrations/How-do-I-copy-attachments-when-cloning-an-issue/qaq-p/400339>

HTH

Nicolas
Set 'Reviewer' to user input on workflow transition
Asked by sarah_akers:

When a user transitions an issue from In Progress \> In Review, I'd like to prompt the user with a pop up window to choose who to set the Reviewer as.

From what I can tell, via automation I can set the Reviewer field on a workflow transition but it has to be predetermined - either hard set to a certain user or using other fields like "reporter". This doesn't work for what I need as there isn't 1 person that is responsible for reviews, and often the task is created by someone other than the reviewer.

Is what I want to do possible?


Answers:
author: Trudy Claspill
body: Hello [@sarah_akers](/t5/user/viewprofilepage/user-id/5539809)

Welcome to the Atlassian community.

Are you working with Jira Cloud or Jira Server/Data Center?

If you are working with Jira Cloud are you working with a Team Managed project or a Company Managed project? You can get that information from the Type column on the View All Projects page under the Projects menu.

If you are working with a Company Managed project it is possible to display a pop-up during a workflow transition, where you would display the Reviewer field and allow the user to select the value. This would be a change in the Workflow, not a use of Automation Rules.

If you are working with a Team Managed project it is not possible yet to display pop-ups during workflow transitions.

With Automation Rules you would not be able to trigger the change automatically based on the status change and also prompt the user for input. Users can be prompted for input only with Manual Trigger Automation Rules. And if they have to manually trigger the rule, then they are already viewing the issue and may as well just set the Reviewer field directly at that point.

comments: author: sarah_akers
body: Thank you for your reply. I am using a Team Managed Jira Cloud project.

I was hoping to make it easier for the user to remember to set a reviewer when moving their task for review by forcing input, rather than relying on them to use a manual action. But it sounds like what I want is not possible.


author: Trudy Claspill
body: No, for a team managed project there is no way to prompt for user input specifically during a transition.

With an Automation Rule you could detect that the Reviewer field was empty **after** the transition completed, automate reverting the issue to the previous status (if that is an allowed transition) and send an email to the person who executed the transition to alert them that they need to enter a Reviewer and then execute the transition again.

You might be able to add a Rule to the transition that requires the Reviewer field to have a value in order for the transition to be available, but then the transition/destination status would simply not appear as available if the field was not filled in. (I haven't tried that option specifically to ensure a field has a value.) That would not provide the user with any hint as to why they could not select the transition though.


author: sarah_akers
body: Thank you for your help!


Tags: status

workflow