youngmon/atlassian-qna huggingface dataset:
Only display or notify about a field change?
Asked by Orlin:

We have an issue that is open for a while with a complex workflow. For our team one field is very important on this issue and we wan't to see if it is changed.

Any way that we can search this change or notify peaople about it directly?


Answers:
author: Geethanjali Katagani
body: Hi Orlin,

You can use automation for this, send email to particular users when filed value changes.

I hope this snap will help you.

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

Regards,

Geethanjali

comments: author: Orlin
body: It works! Thank you!


author: Geethanjali Katagani
body: great!

can you please accept the answer.

Regards,

Geethanjali


author: Tibor Tasi
body: Hi [@Orlin](/t5/user/viewprofilepage/user-id/3629619),

With our [Issue History+](https://marketplace.atlassian.com/apps/1232311/issue-history-for-jira-search-compare-flag-share?hosting=cloud&tab=overview) app you can easily see flag the changes affecting this field to differentiate it from other changes in the history!

You can also search changes easily with expressions, see changes highlighted visually for easy identification or share important changes with any user to inform them immediately.


Tags: cloud

jira-software

jira-software-cloud
I want to search for more parent issues in JIRA Automation
Asked by koutarou ishibashi:

Please forgive me for not being good at English

In jira automation, when searching for a parent issue, we use Key = {{issue.parent.key}} to search.  
So, what smart values should you use when searching for a parent's parent issue?

Also, when searching for child issues, we search with "Parent Link" = {{issue.key}}, but what kind of smart value should we use when searching for child issues of child issues?


Answers:
author: Peter_DevSamurai
body: - search for a parent's parent issue in Jira automation, you can use the following smart value: {{issue.parent.parent.key}}  
This smart value will return the key of the parent issue of the current issue's parent issue.  

To search for child issues of child issues, you can use the following smart value: {{issue.subtasks.subtasks.key}}  
This smart value will return a list of keys of the child issues of the current issue's child issues.  
Here are some examples of how to use these smart values in Jira automation:  
- Search for the parent's parent issue of the current issue and transition it to the "Done" status. transitionIssue({id: {{issue.parent.parent.id}}, transition: "Done"})  
- Search for all child issues of child issues of the current issue and assign them to the user with the username "john.doe". assignIssues(issueKeys: {{issue.subtasks.subtasks.key}}, assigneeUsername: "john.doe")  

Note: You can also use the Lookup issues component in Jira automation to search for parent's parent issues and child issues of child issues. However, the smart values shown above are more efficient and easier to use.

comments: author: koutarou ishibashi
body: Thank you for your answer.  
{{issue.parent.parent.key}} was available, but {{issue.subtasks.subtasks.key}} was not.


Tags: cloud

jira-software

jira-software-cloud
Automation with labels
Asked by Ido Cohen:

Hi,  
I am trying to do an automation with two labels (or more)  

I want the automation to check if a particular label exists when adding a new label.  
e.g., I want the label "resolved" to add a specific comment only if the "software access" label is applied to the ticket and a different comment if the "Hardware access" label is applied  

I hope that is clear enough.   
Thanks for the help


Answers:
author: Hauke Bruno Wollentin
body: Not sure if I get it right, but maybe this way?

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

comments: author: Ido Cohen
body: Thanks for that [@Hauke Bruno Wollentin](/t5/user/viewprofilepage/user-id/5238429)

i will try it and let you know


author: Ido Cohen
body: for some reason the second if does give me to put the comment "under" it it's in direct line to the other steps


author: Hauke Bruno Wollentin
body: You can move the single action blocks around with the mouse :)


author: Ido Cohen
body: Every if you added was a if/else block?


author: Hauke Bruno Wollentin
body: Ah sorry, misunderstood.

The first **If: Compare two values** is just an If.

The others are *one* if/else block


author: Ido Cohen
body: that didn't work for me [@Hauke Bruno Wollentin](/t5/user/viewprofilepage/user-id/5238429)


author: Hauke Bruno Wollentin
body: Yeah sorry, the first IF condition need to be *contains* instead of equals

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


author: Ido Cohen
body: [@Hauke Bruno Wollentin](/t5/user/viewprofilepage/user-id/5238429) Thanks that worked!  


Tags: cloud

jira-service-desk-cloud

jira-software

jira-software-cloud
Missing "Alert created" automation trigger
Asked by Connor:

[I asked this same question in the JSM community group](https://community.atlassian.com/t5/Jira-Service-Management/Missing-quot-Alert-created-quot-automation-trigger/qaq-p/2445827), without getting an answer yet, so before I contact Atlassian support I thought I would ask again in the automation community.

I was reading a product update titled **New automation action: Create incident** which has the following description, link to documentation, and accompanying screenshot.
> When this action is executed, an incident of selected request type will be created in the selected service project on Jira Service Management. For example, you can use this action to create a new incident when an alert is created and meets certain criteria.
>
> You'll also have the option to link the alert with the new incident, and to avoid creating a new incident if the action has already created an open incident of the same type in the project.

[Learn more about the create incident action](https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Create-incident).![JiraAutomation-CreateIncident.png](https://community.atlassian.com/t5/image/serverpage/image-id/281852i4ACAA084DA6533D4/image-size/large?v=v2&px=999 "JiraAutomation-CreateIncident.png")

I wanted to test this new action by creating a similar rule to the one shown in the screenshot. The problem is I can't find any **Alert created** triggered, at the project or global automation level. The **Alert created** trigger is also missing from [Atlassian's documentation on Jira automation triggers](https://support.atlassian.com/cloud-automation/docs/jira-automation-triggers/).

Am I crazy or doing something wrong? Has anyone seen or used this **Alert created** trigger? Is it a new trigger that hasn't been released yet?


Answers:
author: Makarand Gomashe
body: Hi [@Connor](/t5/user/viewprofilepage/user-id/1288335)

Thank you for calling this out! I have replied in the JSM community! Apologies for the delay! Sharing it here again for the visibility of the Automation community.

The Alert Created trigger is still under development. I don't have a timeline for when it will be available, but when it is we will share it here on Community.

In the meantime, we've updated the product update and screenshot.

Thanks,  
Makarand  
PM, JSM


author: Bill Sheboy
body: Hi [@Connor](/t5/user/viewprofilepage/user-id/1288335)

I also checked and that trigger, "Alert Created", does not appear for JSM, JSD, Jira Cloud, or Jira Server/Data Center documentation...*at this time*. It is possible it existed in a non-prod version long enough for someone to make that screen image. Or it is from a marketplace addon.

Recently I also encountered some actions that were quietly removed from automation documentation, sometime since June 2023. The response from the automation team's product people was: it was never in prod and was only a documentation page error.

Hmmm...puzzling.

Kind regards,  
Bill


Tags: cloud

jira-cloud

jira-service-management

jira-service-management-cloud
How can I use automation to assign a feature to a story.
Asked by Pfohl Jason:

My team has support tickets being assigned to us in Jira under the issue type "Bug". I want to assign our "Break-Fix" feature to these stories when they are created in Jira. We are operating in the company managed Jira cloud project.


Answers:
author: Bill Sheboy
body: Hi [@Pfohl Jason](/t5/user/viewprofilepage/user-id/5096476)

What is the hierarchy of your issue types?

The out-of-the-box hierarchy is:

* Epic
  * Story, Task, or Bug types
    * Sub-task types

So the built-in Bug type can be linked to an Epic using either the "Epic link" or "parent" fields in an automation rule. If you have a different hierarchy, or issue linkage path, please adjust accordingly.

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

comments: author: Pfohl Jason
body: Bill,

The hierarchy is:

Epic, Feature, Story, then Sub Task

I was able to automate with the following.

{  
"fields": {  
"customfield_#####":"issue key number"  
}  
}


Tags: cloud

jira-software

jira-software-cloud
Size for Each project
Asked by shankara vijayendran:

Hello all   
Greetings of the day   
"I'd like to initiate a discussion on how to retrieve the total size of individual projects in Jira Cloud, beyond just calculating attachments size. My goal is to identify which projects are consuming the most Jira Cloud storage space. Any insights or methods to achieve this would be greatly appreciated. Thank you!"


Answers:
author: Darryl Lee
body: Hi [@shankara vijayendran](/t5/user/viewprofilepage/user-id/4972111) -

From reading this page: [Track storage and move data across products](https://support.atlassian.com/security-and-access-policies/docs/track-storage-and-move-data-across-products/), I don't believe Atlassian has any limits on storage **except** for attachments, so I'm curious as to why you would want to have this information. Are you trying to plan a migration to Data Center, and want to scope how big your database will need to be?

As far as concerns about disk space, there was a [recent answer](https://community.atlassian.com/t5/Jira-Software-questions/Storage-issue/qaq-p/2482264) that reiterated this current policy:
>
> What happens if I exceed my storage limit? {#toc-hId--435624395}
> ----------------------------------------------------------------
>
> Storage limits are not currently enforced. If your Confluence or Jira products exceed their plan's storage limit, we won't cancel your subscriptions or remove any data, as long as usage is in accordance with our [acceptable use policy](https://www.atlassian.com/legal/acceptable-use-policy).

But as an academic exercise I was kind of interested in whether the API would be able to get the attachments size (I know you didn't want that, but the short answer to your question is that Atlassian does **not** provide information on database size, as far as I can tell.)

Anyways, it looks like this shell command that uses **curl** and **[jq](https://jqlang.github.io/jq/manual/)** ought to do the trick of getting the total of all attachments for project **BUG**:
> curl -s --user --user "YOUREMAIL:YOURTOKEN" "<https://YOURHOST.atlassian.net/rest/api/2/search?jql=project=>**BUG** %20and%20not%20attachments%20is%20empty\&fields=attachment" \| jq -r '\[.issues\[\] \| .fields.attachment\[\].size\] \| add'

Which gave me a total of **2531505**, which I believe is in bytes. (This is my test project.)

Original source for that API call is from this article:

* [Need to export all attachments from a single Project - JIRA Cloud](https://community.atlassian.com/t5/Jira-questions/Need-to-export-all-attachments-from-a-single-Project-JIRA-Cloud/qaq-p/717930)

And oh, there's a KB article with a set of instructions on installing **jq**. Nice!

* [Find list of issues where attachments are added and their size is greater than 'xx'MB](https://confluence.atlassian.com/jirakb/find-list-of-issues-where-attachments-are-added-and-their-size-is-greater-than-xx-mb-1255445721.html)
Migrate Confluence from Windows to Linux data Center
Asked by niranjan:

Hello Community,

In our production there are two Confluence instances. We are planning to migrate or consolidate the two instances and make it as one. I need tips and suggestion for how to achieve this migration.

Note: we got the task to migrate all the data from Instance A to instance B. Currently there are no non-prod environments setup.

Instance A -

* Current Confluence Version - V 6.4.1

* Operating System- Windows Server 2012 R3

* Application Server - Apache Tomcat V 8.0.43

* Database - H2 database

* Database Version - V 1.3.176

* Database Driver Version - V 1.3.176

* Java Version - V 1.8.0_131

* JVM Version - V 1.8

Instance B-

* Current Confluence Version - V 7.1.3.7

* Operating System- Linux 5.15.0-1034-azure ( Datacenter with HA )

* Application Server - Apache Tomcat V 9.0.63

* Database - PostgreSQL database

* Database Version - V 14.7

* Database Driver Version - V 42.2.18

* Java Version - V 11.0.14.1

* JVM Version - V 11


Answers:
author: Robert Wen_ReleaseTEAM_
body: Hello [@niranjan](/t5/user/viewprofilepage/user-id/1782894)

Ordinarily I'd say that you could export your spaces on Instance A as XML (backup) and then import them into Instance B.

According to these docs here, you should be able to import the XML zip file created on Instance A into Instance B.

<https://confluence.atlassian.com/conf64/export-content-to-word-pdf-html-and-xml-936510554.html#ExportContenttoWord,PDF,HTMLandXML-NotesonXMLexporting>

Good luck!

comments: author: niranjan
body: Hello [@Robert Wen_ReleaseTEAM_](/t5/user/viewprofilepage/user-id/3970316)

Thank you for the solution. If we do XML import on instance B does the existing data on the instance B gets wiped out and imported data will only be there ? Also how to import the attachments, images, add-ons which are there on instance A ? please suggest.

Thanks

Niranjan


author: Robert Wen_ReleaseTEAM_
body: Take a look at the following knowledgebase article

<https://confluence.atlassian.com/conf64/restoring-a-space-936511534.html>

It should get everything you need for the space (except users and groups, I believe)

I also don't think it will overwrite the data on Instance B.


author: niranjan
body: Thanks for the information.


Tags: confluence

migration
Automating Email Alerts based on Custom Due Date field
Asked by John:

I am looking to set up a rule to have emails sent to the assignee based on my TBX's approaching their Due Date. Due Date is a custom field we use. I am new to Automation and this may be simple, but I didn't see any way to add this.


Answers:
author: Mauricio Heberle
body: What would be "TBX"? How close to duedate you 'd want this to be?

comments: author: John
body: TBX is just an issue type we made. It tracks items that we need. TBX = To Be XXXX.   

I would want notifications sent out to assignees as we approach the due date, probably 45,30,15 days from due date.


author: Mauricio Heberle
body: Your automation will look like this:

![Captura de Tela 2023-09-14 a?s 11.41.39.png](https://community.atlassian.com/t5/image/serverpage/image-id/280715i3F856340A1AAD2D2/image-size/large?v=v2&px=999 "Captura de Tela 2023-09-14 a?s 11.41.39.png")


author: John
body: Thank you!


Tags: cloud
Button Actions
Asked by Micha?l Monserrat:

Hello,

I use the "Actions" button on the Cloud version of Jira Service Management to manually trigger certain automations.

Is this button present on the Data Center version?

Thank you in advance for your help.

Best regards.


Answers:
author: Tansu Akdeniz
body: Hi [@Micha?l Monserrat](/t5/user/viewprofilepage/user-id/3647832)

Yes, it is available in DC too, in a different position.

[Manually run a rule against an issue](https://confluence.atlassian.com/automation/manually-run-a-rule-against-an-issue-993924645.html)

comments: author: Micha?l Monserrat
body: Hello [@Tansu Akdeniz](/t5/user/viewprofilepage/user-id/472390)

Thank you very much for your reply. This is great news :)
Automation: Comments added by specific user
Asked by ajinder singh:

I want to create an automation which should basically be updating an issue field.  

I only want to update issue field if there is a comment added by a certain user (abc@company.com). Comments added by other users should not update the issue field.  

How can I achieve this, requesting inputs.


Answers:
author: Mauricio Heberle
body: Try creating an automation like:

Trigger -\> Issue Commented  
Advanced compare condition -\> {{comment.author.displayName}} equals "user name"  
Edit issue field

comments: author: ajinder singh
body: This helps.  
Any alternate if in case we have multiple users with the same user name?


author: David Blank
body: Hi and welcome to the Atlassian Community!  

Without more details, this is how I would solve at a high level.  

Trigger event: Comment Added  
User Filter: User who triggered the event = your user  
Action: Update Description with Smart Value for Comment author: {{issue.comments.author.displayName}}  

Here's a screenshot of how I would implement it:

![Screenshot 2023-09-12 at 10.18.25 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/280190iB5C091BDEBC6BF8F/image-size/large?v=v2&px=999 "Screenshot 2023-09-12 at 10.18.25 AM.png")  

Please let us know if this works or if there are more details to share.  


Tags: comment

user
Canned response when ticket is created
Asked by Mel Brooker:

Hi, im wanting to have a canned response send automatically when a ticket is created.   
Cannot fathom out how to get this running.

Thanks


Answers:
author: Edgardo Ibarra
body: Hey Mel, you can create an automation that sends a new comment or mail when a ticket is created. To do so, you need to go to your project configuration and click automations and it would be something like this:

![Screenshot 2023-09-12 at 09.08.37.png](https://community.atlassian.com/t5/image/serverpage/image-id/280152i4074F9CC74C0167D/image-size/large?v=v2&px=999 "Screenshot 2023-09-12 at 09.08.37.png")

Other workaround to achieve this is using the **client notifications** if your project is JSM:

![Screenshot 2023-09-12 at 09.10.12.png](https://community.atlassian.com/t5/image/serverpage/image-id/280154i9D953F9E0EB31AAE/image-size/large?v=v2&px=999 "Screenshot 2023-09-12 at 09.10.12.png")

![Screenshot 2023-09-12 at 09.10.34.png](https://community.atlassian.com/t5/image/serverpage/image-id/280155iCAECB5287795F576/image-size/large?v=v2&px=999 "Screenshot 2023-09-12 at 09.10.34.png")

This would send a automatic email to the reporter when a new request is created.

I hope this helps!

comments: author: Darryl Lee
body: For simple canned messages, Client Notifications is probably preferable, as it is much easier to manage.


author: Edgardo Ibarra
body: Yes I prefer to use it too!
Schedule email 1 week after transitioning to
Asked by Marc O_Nions:

I would like a group to receive an email 1 week after an issue transitions to a particular state.

So far I have managed to set this up but without the 1 week delay.


Answers:
author: Arkadiusz Inglot
body: Hello, let me give you some hints:

1. Automation rule A or workflow post function to edit a field value.
   1. Issue transition trigger TO status.
   2. Set proper timestamp (today+7d) to non editable custom field.
2. Automation B
   1. Scheduled run every day at 8am (or other time)
   2. If custom field value (with timestamp value) = today run the sending email mechanism.
   3. Clear the custom field value or leave it as it is (futher days will not be equal to custom field value anyway)

comments: author: Marc O_Nions
body: Thank you.

I did the following and it worked:

When Issue transitioned to (my status)

If: Issue Matches JQL:

project = (my project) AND status = "my status" AND status CHANGED TO "Despatched" BEFORE -7d

Then: Send email
Add "Request participants" to issue, instead of changing existing ones - two automation rules
Asked by Filip Prokop:

Hello,

I'm propably overthinking it much, and the answer is really simple, but i just cant get it right.

I created two automation rules:

1. If the issue is created by X, change "Request participants" field to user Name1
2. If the issue type is "Onboarding", change "Request participants" field to user Name2

The rules both work fine, except when user X creates issue type "Onboarding".

In that case, both rules are executed, and they override each other.

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

Problem is, they don't always get executed in the same order (looks like it's random), so I cant just add "Copy from issue" to "Request participants" field, in the rule, that runs as second one.

Easiest fix would be, if the "Request participants" field added new user, instead of replacing existing.


Answers:
author: Filip Prokop
body: Ah, I just realized after posting the question.

I'll just add "Copy from issue" to both automation rules, therefore it doesn't matter which rule gets executed first, as they both will work as "add", instead of replacing the field.


author: Arkadiusz Inglot
body: Hello

1. What is more important in this case? Onboarding or Reporter (user X) to set the values in your problematic case?

2. Create one rule and make proper if statements. Ths below is an example and you should set IFs which suits you properly, as both triggers which you described (1, 2) do not exclude eachother.![jira-auto.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/279579i83F4FEEA30FE7898/image-size/large?v=v2&px=999 "jira-auto.jpg")

comments: author: Filip Prokop
body: Well, they are both equally important and need to be executed toghether if needed.
Cannot create Pull Request as admin user
Asked by rheydenr:

Hi all, I've just tried to create a pull request for a certain branch in my repo. But the "create pull request" button is grayed out, although I'm logged in as admin user. Is it not possible in free tarif or what else could be a reason?

Thanks in advance,

Ralf.


Answers:
author: Theodora Boudale
body: Hi Ralf and welcome to the community!

We do not restrict the creation of pull requests on the Free plan.

Can you please confirm if you are referring to the **Create pull request** button on the Pull requests page of the repo?

This button has a gray color by default:

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

What happens when you select it?

Could you also please let me know:

* Are you using a supported browser from the ones listed on this page?  

  <https://confluence.atlassian.com/bbkb/which-web-browsers-does-bitbucket-support-1168845119.html>  

* Can you try a different supported browser and also an Incognito/Private window of the browser, with all add-ons disabled?

Kind regards,  
Theodora


author: Charlie Misonne
body: That's not possible but you can tweak your notifications preferences by clicking your avatar and going to *notifications.*This is new by the way.

How I've been doing for a very long time now: I have an inbox rule with all my Jira notifications and whenever I've got the time I quickly go through those emails (most can be deleted). I prefer this method over the in-product notifications.


Tags: bitbucket-cloud

cloud