youngmon/atlassian-qna huggingface dataset:
automate
Asked by swathinamburi1:

need automation plugin to create a ticket structure and auto generate tickets


Answers:
author: Darryl Lee
body: Hi [@swathinamburi1](/t5/user/viewprofilepage/user-id/5123719) -

Automation for Jira can certainly do this. You might want to check out this video:

* [How to automatically create sub-tasks using Jira automation](https://www.youtube.com/watch?v=oshaBWkfsxY&ab_channel=Atlassian)

And here is an example rule:

* [Automatically add 3 sub-tasks on issue creation](https://www.atlassian.com/software/jira/automation-template-library/rules#/rule/112180)

While those examples show how to create sub-tasks, you could also create regular (non-sub) issues and then establish a link between the tickets.

* [Linking a newly created ticket with automation for Jira](https://community.atlassian.com/t5/Marketplace-Apps-Integrations/Linking-a-newly-created-ticket-with-automation-for-Jira/qaq-p/580287)


Tags: cloud
All subtasks closed then only main ticket should be closed
Asked by Vallala Ujwala:

Hi Team

After upgrading, in one of the module ,parent task is getting closed before the last subtask closure.Which shouldn't be the case!! only after closing all the subtasks main task should be closed

Can any one help me with this

Thank you.


Answers:
author: Vallala Ujwala
body: ![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/236061i0056EAE488F61BE9/image-size/large?v=v2&px=999 "image.png")

comments: author: Sam Harding
body: Hi [@Vallala Ujwala](/t5/user/viewprofilepage/user-id/5127092)

I can't see where this rule is closing the parent tasks in its configuration. It looks like there may be more involved here, namely a workflow configuration outside of Automation which is closing the parent task. Could you check if there is a workflow which could be causing this to happen?

If you cannot find a cause there, please raise this with support at <https://getsupport.atlassian.com/> so the team can take a closer look.

Thanks!  
Sam


author: Alex Koxaras _Relational_
body: Hi [@Vallala Ujwala](/t5/user/viewprofilepage/user-id/5127092) and welcome to the community,

Can you please post your rule here? This way we will be able to identify the problem and provide a possible solution.

comments: author: Vallala Ujwala
body: Shared the screen short of rule above, every configuration seems to be perfect but still issue persists.

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


author: Alex Koxaras _Relational_
body: [@Vallala Ujwala](/t5/user/viewprofilepage/user-id/5127092) from that image you pasted it is clear that this rule is not responsible for closing the parent issue.

I would search for:

* Another rule (could be global) which closes the parent issue
* A workflow postfunction
* An event listener which listens specific events and act accordingly
confluence automation for only pages below a specific page
Asked by Gaby:

Wir m?chten eine Automatisierungsregel f?r Confluence erstellen, die regelm??ig jede Minute ausgef?hrt wird (als Alternative zum nicht vorhandenen Trigger VERSCHIEBEN)

und

1. alle Seiten unterhalb einer bestimmten Seite in einem bestimmten Bereich betrifft.

1.1 Dann soll ein spezifisches Label f?r diese Seiten erstellt werden, wenn sie es noch nicht haben

und  

1.2 Alle anderen vorhandenen Labels sollen entfernt werden

Hat jemand eine Idee, was die Automatisierungsregel hier sein sollte? Oder bereits implementiert?

Ich kann in der Automatisierungsbibliothek f?r Confluence keinen Vorschlag finden.

PS: Ich bin nicht versiert in der Programmierung

Ich freue mich auf Antworten. Viele Gr??e - Gaby


Answers:
author: Sheerine Baucum
body: [@Gaby](/t5/user/viewprofilepage/user-id/4011717) Thank you for your question! We can accomplish some of this ask, but not everything at this time.

We can add a label to pages based on the ancestor, but we cannot remove all other labels without entering the label name. If you know what labels need to be removed you can add a component to remove those.  

I recommend setting up a rule like this:  
Trigger - scheduled (or whatever would trigger this rule)

Branch Component on Related Entities with CQL that is ancestor=\[id of parent page\]

Action to Add Label

Note: IF you know which labels to remove you could also add an action to remove the specific labels.  

I hope this helps. Thank you!

comments: author: Gaby
body: Hallo Sheerine,  
vielen Dank f?r deine Ratschl?ge und Informationen. Ich werde versuchen, Ihre Info entsprechend umzusetzen und hier im Ergebnis zu berichten.

Gru? des Dankes


author: patricia
body: Hello Sheerine,  
thank you very much for your advice and information. I will try to implement your information accordingly and report here as a result.

greeting of thanks


Tags: cloud

confluence

label

page

trigger
Automation for JIRA Plug-In - Actor Override
Asked by Ivor Allchin:

When setting the details for an Automation Rule, it seems the only option for the Actor is to define a JIRA User in advance.

We have a use case where the Automation Rule needs to be dynamically executed under the User Account of the JIRA User whose activity triggered the automation event, rather than by a pre-defined user.

Is it possible to configure Rules using a variable, and if so can anybody share an example?

Many thanks.


Answers:
author: Jack Brickey
body: Hi [@Ivor Allchin](/t5/user/viewprofilepage/user-id/5087942) ,

i'm not sure it's the same in server, however, in cloud, you can change the actor under the automation rule details. An image of this is provided below. You have the option in the drop down to choose the user who triggered the event.

![704DE00B-0681-48ED-9BF2-0B511F0FF88D.jpeg](https://community.atlassian.com/t5/image/serverpage/image-id/234775iD0DACC4EAF3474B5/image-size/large?v=v2&px=999 "704DE00B-0681-48ED-9BF2-0B511F0FF88D.jpeg")

comments: author: Ivor Allchin
body: Thanks [@Jack Brickey](/t5/user/viewprofilepage/user-id/853369) for the quick response!

Yes, you can change the Actor on Server as you say, but only in advance of running the Rule and the value is hard-coded for every execution.

What we're after is to be able to put a variable value in the Actor field that is populated at runtime e.g. the Rule runs under 'CurrentUser()', for example.

We can't see a way of doing that...


author: Jack Brickey
body: Ivor, i guess I misunderstood. I thought that you wanted the actor to be set to whomever triggered the rule. Is this not the case? If not please explain which user would be set is the actor? I have added another screenshot that illustrates that you can select"User who triggered the event".

![2023-01-17_08-03-28.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/234797iA2C06F8F92627A40/image-dimensions/379x313?v=v2 "2023-01-17_08-03-28.jpg")


author: Ivor Allchin
body: Thanks [@Jack Brickey](/t5/user/viewprofilepage/user-id/853369) - you're correct, that's the use case exactly.

I don't have that option, however - only the option to search for the named user:

![Screenshot 2023-01-17 131158.png](https://community.atlassian.com/t5/image/serverpage/image-id/234801i1C85DA5AC1A5A6B1/image-size/large?v=v2&px=999 "Screenshot 2023-01-17 131158.png")


author: Darryl Lee
body: Ugh yeah, this isn't available on Server/Data Center. Bummer. Here's the ticket for it:  
<https://jira.atlassian.com/browse/JIRAAUTOSERVER-254>


author: Ivor Allchin
body: Thanks [@Darryl Lee](/t5/user/viewprofilepage/user-id/1365322)

Shame it's not better news but appreciate the update and the link.


Tags: server
Getting "Specify a valid value for reporter" error while trying to exporting flow from ARD
Asked by arunava2219:

Hi All,

I was trying to export a flow from ARD to Jira . While I am trying to export a error is coming saying "Specify a valid value for reporter" according to broadcom this value comes from jira username but It is of no use . Can anyone please help me with the issue


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

You are going to need to give us a bit more detail - mainly how you are trying to map ARD users into Jira?

comments: author: arunava2219
body: [@Nic Brough -Adaptavist-](/t5/user/viewprofilepage/user-id/781454)

ARD will be able to login in Jira by its Connectors . There is a option called "Export Flow"

Now for this feature to work I have to map "Reporter Name" as Jira username

I am trying to use the username which I used for login but it is not helping .

It will be a pleasure if you help me with this issue


author: Nic Brough -Adaptavist-
body: Ok, but how are you mapping your ARD users into Jira? What is the connection? A directory? Something ARD is looking up and passing in? Jira users?
A rule that is created based on the reports of different reporters
Asked by Meates Underwoodson:

Hi there,  
An issue should be automatically assigned to a specific participant when a certain group of reporters (customers) raises it.  
Is it possible to do that?  
As of now[,](https://testgriffor.net/) I can only set up a rule that adds a specific participant to every issue.  
Project Settings\>Automation\>Create Rule\>When: Issue Created (and then save)............Next component\>Then: New Action\>Edit Issue, select - Request Participant and then select the name.  
Thanks


Answers:
author: Ste Wright
body: Hi [@Meates Underwoodson](/t5/user/viewprofilepage/user-id/5120865)

Can I confirm the logic is...

* If a specific set of Customers (Reporters) raises and Issue
* Then add a specific Request Participant
* ...and repeat, for multiple scenarios

...is this correct?

---

If yes, I'd recommend using the **If/Else Block**condition within your rule to allow for multiple different outcomes.

The rule would look something like this:

* **Trigger:** Issue Created
  * **Condition:** If/Else Block
    * **IF...**   
      * **Sub-Condition:** Issue Fields Condition
        * Field = Reporter
        * Condition = is
        * Value = \<Users Here\>
      * **Sub-Action:** Edit Issue  
        * Field = Request Participant
          * Value = \<User Here\>
    * **ELSE-IF...**   
      * **Sub-Condition:** Issue Fields Condition
        * Field = Reporter
        * Condition = is
        * Value = \<Users Here\>
      * **Sub-Action:** Edit Issue  
        * Field = Request Participant
          * Value = \<User Here\>
    * **...etc**

---

A few notes on this rule:

* If Participant is actually "Assignee", you could replace the Field used in the Actions
* You can have multiple"ELSE-IF" sub-rules - just click "Add else" in the left-hand column showing the rule, and add at least one Condition to turn it into an "ELSE-IF" condition
* These rules usually run on the assumption that each IF/ELSE-IF statement is unique - i.e the Reporters/Customers are not the same on any other statement. If they can be, and your results are not optimum, you could use **Branch** instead for this scenario. It would look something like this for each section of the rule:
  * **Branch:** Related Issues  
    * Type = Current Issue
      * **Branch-Condition:** Issue Fields Condition
        * Field = Reporter
        * Condition = is
        * Value = \<Users Here\>
      * **Branch-Action:** Edit Issue  
        * Field = Request Participant
          * Value = \<User Here\>
  * **...etc**

---

Let us know if this helps!

Ste


author: Wong
body: You might consider using an If/Else condition for this:

If reporter A

Participant A

Else reporter B

Participant B

Etc.
Set custom userpicker field with all users in specific role
Asked by Rudi Strydom:

Hi Everyone

We have a custom field that represents the Product Owner. During the workflow of the issue we have an automation "edit issue fields" action that sets the custom field to a manually entered list of users.

We currently have a Product Owner role in the project, and I would like to dynamically retrieve all the users in this role rather than updating hardcoded rules.

Thanks

Rudi


Answers:
author: Ste Wright
body: Hi [@Rudi Strydom](/t5/user/viewprofilepage/user-id/4011633)

As far as I know, this is not directly possible at this point - the **Action** to set a Multi-user picker works off Group, but not Project Role.

If you could place the Product Owners into a Group instead, you could easily reference that in the *Edit Issue*Action.

For Project Role, there is a feature request to add this - vote for/watch [AUT-279](https://codebarrel.atlassian.net/browse/AUT-279)

---

The other alternative, according to [this question/answer](https://community.atlassian.com/t5/Jira-questions/Updating-Custom-User-Field-from-Project-Role/qaq-p/1991290#M527847), is:
> One work-around would be to [call the REST API with a web request](https://community.atlassian.com/t5/Jira-articles/Automation-for-Jira-Send-web-request-using-Jira-REST-API/ba-p/1443828) from the rule to get the role information with this method:
>
> <https://docs.atlassian.com/software/jira/docs/api/REST/1000.824.0/#api/2/project/{projectIdOrKey}/role-getProjectRole>

But, this isn't something I've personally tried!

Ste
How to include Project Name in automated email
Asked by Lily Tucker-Ha:

Hi, please can someone help me?  

I have an automation rule set up that emails an internal distribution list to say when all items in a fix version are Ready for Release. This email successfully shows the project name in the email subject and email body.  

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

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

My problem is, I have another automation rule that emails the same internal distribution list when when fix version has been released; however this email fails to show the project name.

Here is the rule detail:  

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

In the email that is received, nothing appears for the project name. I think it might have something to do with the trigger, but my assumption is that Jira knows what project the version is associated with, so why is it not able to include the project name.

Please can someone advise, and/or provide a way for this to work?

Many thanks in advance,

Lily


Answers:
author: Ste Wright
body: Hi [@Lily Tucker-Ha](/t5/user/viewprofilepage/user-id/3981715)

This smart value will work:

```
{{version.project.name}}
```

Ste

comments: author: Lily Tucker-Ha
body: Hi [@Ste Wright](/t5/user/viewprofilepage/user-id/1166470) this worked! Thank you so much! It saves me multiple attempts to test out all the smart value variations :D


author: Alex Koxaras _Relational_
body: Hi [@Lily Tucker-Ha](/t5/user/viewprofilepage/user-id/3981715)

The use {{project.name}} is the correct smart value. Can you please share your audit log? Is the the rule triggered?

comments: author: Lily Tucker-Ha
body: Hi [@Alex Koxaras _Relational_](/t5/user/viewprofilepage/user-id/4150197)

Thanks for the quick response!  
I'm currently attempting to adjust the rule to make it work, so I've had some config updates. However with each attempt the rule "successfully" triggers:  
![audit log.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/233880i3D44C9003AB0F9A2/image-size/large?v=v2&px=999 "audit log.PNG")


author: Anil kumar Matta
body: Hi [@Alex Koxaras _Relational_](/t5/user/viewprofilepage/user-id/4150197) I am using the {{project.name}} in the email Subject, But when i receive an email there is no project name only the prefix text i have given is been displayed. Please suggest.

![Screenshot 2024-05-29 at 5.56.53?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/326661i8039235231E6F955/image-dimensions/408x204?v=v2 "Screenshot 2024-05-29 at 5.56.53?PM.png")

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/326660i9BD0F0EA3D91CBB5/image-dimensions/403x205?v=v2 "image.png")


Tags: email

project
How to trigger Slack notification X Days after Confluence Page created?
Asked by andyades:

We have automation that triggers the creation of a new Confluence page every Monday for weekly meeting agenda for a Thursday meeting and then sends a Slack notification to a channel to remind users to fill it out. We'd instead like the Slack notification to be sent out every Wednesday to remind users to add to the agenda. How can I either:

1. Delay the Slack notification within the same automation rule to send X days later
2. Or reference the newly created page url in a new automation rule that sends the Slack notification


Answers:
author: Charlie Gavey
body: Hi [@andyades](/t5/user/viewprofilepage/user-id/4967882) - you could set up an Automation rule in Automation for Confluence to support this use case. Here's an example of what this might look like.

![Screenshot 2023-01-16 at 15.10.16.png](https://community.atlassian.com/t5/image/serverpage/image-id/234539iF5408DE6AE2E62C1/image-size/large?v=v2&px=999 "Screenshot 2023-01-16 at 15.10.16.png")

comments: author: andyades
body: Thanks [@Charlie Gavey](/t5/user/viewprofilepage/user-id/4622713) I totally forgot about a branch rule. I also added a condition to find the most recent page with the title "Agenda" so it pulled the correct page.

![Screenshot 2023-01-17 at 10.29.10 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/234864i550CA46A131731B8/image-size/large?v=v2&px=999 "Screenshot 2023-01-17 at 10.29.10 AM.png")
Which directory the commands/scripts are running when clone was disabled
Asked by Bitwise DEVS:

```
clone:
  enabled: false
```

If we skip the cloning in a step then which directory the commands/script will run? Based on my observation, if cloning is enable all commands/scripts are running inside

```
opt/atlassian/pipelines/agent/build
```

Does the build folder above still exist even clone is not enable?

If yes, then does it mean commands/scripts will run inside empty build folder?  

If no, then how about if there are artifacts which means build folder will be created?


Answers:
author: Syahrul
body: G'day, [@Bitwise DEVS](/t5/user/viewprofilepage/user-id/3162676)

By default, with enable clone or disable the clone directory will always be point towards:

```
opt/atlassian/pipelines/agent/build
```

So if you disable the clone, the directory path will remain the same, but it will be an empty folder.

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
help to run GC on my bitbucket repo notes2
Asked by qyqx:

help to run GC on my bitbucket repo notes2


Answers:
author: Mark C
body: Hi [@qyqx](/t5/user/viewprofilepage/user-id/3453607),

Thank you for reaching out to the community.

I went ahead and ran Git GC against your remote repository.  
It should be down to **514 MB** now.

Regards,  
Mark C

comments: author: qyqx
body: Thanks


Tags: atl-rvw

bitbucket-cloud

cloud
How to setup local access to bitbucket
Asked by George Wang:

I have create security key from putty and trying to load to bitbucket. But it doesn't seems to work.


Answers:
author: Theodora Boudale
body: Hi George,

We would need some additional details so we can better help you.

What exactly are you doing that doesn't work? Do you get an error when adding the public key to Bitbucket website? If so, what kind of error do you get?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
I could not login
Asked by karamjeet s:

Bitbucket  

We couldn't log you in {#toc-hId--378181645}
--------------------------------------------

You may run into this issue when you use specific browsers or add-ons that hide the referer header for id.atlassian.com and other Atlassian sites. Check for these and then try logging in again.


Answers:
author: Ben
body: Hi karamjeet,

I noticed that your account was marked DORMANT and de-activated as it had not been logged into since 2018. I have since re-activated the account so you should be able to login now.

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Ignacio
body: Hi, I'm having the same issue with every browser.

<br />

I tried creating another account with another email and it works fine, it is a problem with this account.

<br />

How can I fix it?


author: Ignacio
body: Hi, I'm having the same issue with every browser.  

How can I fix it?

comments: author: Ben
body: Hi [@Ignacio](/t5/user/viewprofilepage/user-id/5526245)

9 times out of 10, this message means that your account is marked INACTIVE as a result of not being logged into via the UI for a long period of time. I can see in your case, this has been since 2018.

I have just re-activated your account, so you should be able to login now. More context for this error message may be found in our existing documentation:

* <https://confluence.atlassian.com/bbkb/we-couldn-t-log-you-in-error-message-1236932685.html>

Cheers!

- Ben (Bitbucket Cloud Support)


author: Ignacio
body: Thank you, it's working now. Regards.


Tags: unknown-hosting-type
I could not clone repository from my local machine
Asked by George Wang:

git clone <https://username@bitbucket.org/workspace-id/repo.git>

trying to login as \<email_redacted\> with correct password.

Got Authentication failed.


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

Your account's password can only be used for logging in to the website from browser.

When you clone, pull, or push to a Bitbucket Cloud repo with Basic authentication over HTTPS, you will need to generate an app password:

* <https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/>

When you get asked to provide a password during the git clone operation, you will need to provide the app password you generated. If you only need to clone, pull, or push to repos, the app password should have **Respositories - Read** and **Write** permissions.

Please feel free to let me know how it goes.

Just a heads up, I edited the repo URL and email to protect your privacy, as this is a public forum.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Running garbage collection
Asked by Dan Cosio:

I just ran BFG on my repo and also more some files into lfs.. I need to get GC run on the repository. Who do I send this request too.


Answers:
author: Ben
body: Hi Dan,

I've just executed a gc on my end against that repository - it has reduced from 3.8GB down to 965mb.

To combat high repository size usage, we will be rolling out a feature in the coming month to block commits that are over 100MB in size, this can be toggled off/on from Repository Settings.

In future - you can raise a support ticket with us directly by using your company workspaceID, selecting **Bitbucket Cloud** as the product and selecting **"Technical Issues \& Bugs"** as the reason:  

* <https://support.atlassian.com/contact/>

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud

garbage-collection