youngmon/atlassian-qna huggingface dataset:
How can I edit the values in the lookup table?
Asked by koutarou ishibashi:

Currently, I am checking various things to reduce the execution time of JIRA Automation.  
In jira automation, after creating a lookup table,  
How can I edit the values in the lookup table?  
Is there no choice but to create the lookup table again?


Answers:
author: Bill Sheboy
body: Hi [@koutarou ishibashi](/t5/user/viewprofilepage/user-id/5308713)

When the rule is running, it is not possible to edit a created Lookup Table. The rule can only be edited when revising the rule.

Several community members suggested dynamic updates / re-create of a Lookup Table in rules, as seen in this threads comments: <https://community.atlassian.com/t5/Automation-articles/Update-Create-lookup-table-action-improvements/ba-p/2427798>

Regardless of that, if you rule is being throttled, there is some processing time or looping challenge. If you post your complete rule and audit log details, that will help the community to suggest what adjustments may be possible.

Kind regards,  
Bill


author: Valerie Knapp
body: Hi [@koutarou ishibashi](/t5/user/viewprofilepage/user-id/5308713) , thanks for your question.

Please can you explain what the objective of this automation is. What are you trying to achieve?

<https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Create-lookup-table/>

The Automation playground explains also how to reference lookup table values in rules -

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

So, it depends a bit what you are trying to achieve. Please can you clarify?

Cheers

comments: author: koutarou ishibashi
body: In order to avoid being throttled, we are attempting to minimize the execution time as much as possible. We want to store values in a lookup table and perform calculations within that lookup table. How can we go about varying the values within the lookup table?


author: Valerie Knapp
body: Hi [@koutarou ishibashi](/t5/user/viewprofilepage/user-id/5308713) , thanks for the clarification. Do you have an [Atlassian partner](https://partnerdirectory.atlassian.com/) you are already working with? This sounds like a use case where consultancy would help you obtain this output.
Creating a new Swimlane for Kanban board once a new component has been created using Automation
Asked by Jenny Luther:

In my current project I have a Kanban board that Groups By Queries. Those Queries are essentially all issues that are tied to a specific component. ++**I ++wanted++ to make a Jira Automation that creates a new swimlane automatically if a new component is created instead of manually creating it each time. Is that possible?**++If so I would appreciate anyone's knowledge on what kind of trigger rules I should be using. Thanks in advance!

**Here is the Kanban board where I have manually created some of the Queries for each component**   
![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/313676i83AE48A3AE557E62/image-size/large?v=v2&px=999 "image.png")

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


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

I do not believe that is possible.

There is no public REST API function to get / update the quick filters for the swim lane configuration of a board.

Kind regards,  
Bill

comments: author: Jenny Luther
body: Thanks for the quick response Bill!


author: Yuri Lapin _Release Management_
body: Hi [@Jenny Luther](/t5/user/viewprofilepage/user-id/5459113)

I hope this message finds you well.

If you are up to Partner Apps would suggest trying our [Advanced Kanban and Agile Boards](https://marketplace.atlassian.com/apps/1223877/advanced-kanban-agile-boards?hosting=cloud&tab=overview&utm_campaign=content-strategy&utm_source=community-atlassian&utm_medium=questions&utm_content=aab-swimlanes). We allow you to pick any Jira standard or custom field as column/swimlane and we will be auto-populating columns / swimlanes based on your issues. So, as soon as you have an issue with a new component defined a swimlane will be created or you can click "Add Swimlane" and pick one from the list generated by Automation.

You can also go to extreme and extend your automation rule to create new swimlane poking our Rest API if you want.

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

Cheers,

Yuri.


Tags: jira-automation
Update worklogComment
Asked by Alexander Neschanjan:

Hello,

if a user is timetracking in an issue I do need to edit his comment. I tried to edit his comment via Jira automation rule. But the problem is that the field worklogComment is not accessible via Jira. So how can I edit the comment in another way?

Thank you!


Answers:
author: Bill Sheboy
body: Hi [@Alexander Neschanjan](/t5/user/viewprofilepage/user-id/1397684)

*First thing, I am not using Tempo; my suggestions are based on what I know about automation rules.*

If there is no direct access to the Tempo *time tracking field* with the rule's issue edit action, perhaps check the Tempo documentation to learn if there is a REST API function to edit that field. If there is one, it could be called using the Send Web Request action in the rule.

Kind regards,  
Bill


author: Alexander Neschanjan
body: [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313)Thank's for your reply. I am also not using Tempo... I use the integrated time tracking of Jira. I found the solution... It was a combination of different web requests and smart variables.

comments: author: Bill Sheboy
body: Sorry, my mistake. I confused your time tracking question with another one. I will update my original response, and I suggest un-accepting my answer and accepting your own to help other community members in the future.

Thanks!
Multi-Select field values creating subtasks
Asked by rwwterp:

I have a custom field that has different account types: customfield_10035

There are up to 9 options in this multi-select field.

For each value populated in the multi-select field:

1. Create a subtask
2. For each subtask, the summary should contain one of the values of the multi-select field.

Here is my rule:

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

Which results in:

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

So its populating all of the values rather than an individual value for each item in the multi-select.

How do I get each subtasks summary to contain 1 of the unique values? Such as

Commuter Requirements

Lifestyle Plan Requirements

Tuition Plan Requirements


Answers:
author: Kalyan Sattaluri
body: Hello [@rwwterp](/t5/user/viewprofilepage/user-id/5456749)

Guessing you are branching on customfield_10035.value which is held in {{SVName}}

So in the subtask Summary, instead of {{customfield_10035.value}}, you reference {{SVName}} and it will point to the value which is current inside the loop. Hope it helps.

comments: author: rwwterp
body: Thanks for the help, this worked!
Perform different actions per custom Checkbox field value
Asked by Jesus Octavio Gutierrez Villegas:

Hello everyone.  

First, thanks a lot for your help.  

Im trying to obtain every selected value of my custom Checkbox field.  
If I try: {{issue.customfield_14748.value}}   
I obtain: FE, DB

The 2 values selected... my goal is for each value send a different webhook request, creating a smart value before according to the value.

So, if the value is FE, a specific webhook with different ID will be sent, the same case for DB or other "Layer" (my custom Checkbox field) selected.  

So, for each value of the checkbox field i need to create a smart variable according to the value, each value has its specific ID.  

Is this possible?  
We are trying to automatically install our applications according to the selected values in our fields.  

Or is it possible to do a "FOR" each value?


Answers:
author: Kalyan Sattaluri
body: Hello [@Jesus Octavio Gutierrez Villegas](/t5/user/viewprofilepage/user-id/5116855)

Curious, How many checkboxes do you have?

Either way, you can, after your trigger, do a Condition.. If/Else -\> Advanced Compare and check if your list contains your value, and if so send the web request.. You can chain other conditions in your Else if's accordingly.

Hope it helps.

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

comments: author: Jesus Octavio Gutierrez Villegas
body: Hello Kaylan, thanks a lot for your answer.  

You mean how many custom field checkbox type we have or how many values in our custom field?  
We have several values, i dont know the exact number, but i will be focusing on 3... if one of those is selected a specific webhook should be sent.. if 2 are selected, both webhooks with corresponding ids according the value of the field should be sent as well... also if there are 3...


author: Kalyan Sattaluri
body: Yes, please apply above if/Else condition to check for a value and make your web requests accordingly. Let us know if questions. Thanks!


author: Kalyan Sattaluri
body: Hello [@Jesus Octavio Gutierrez Villegas](/t5/user/viewprofilepage/user-id/5116855) Hope you have been able to solve your issue, if so, consider accepting solution so others can benefit, if not, please share if any issues/concerns with proposed approach and others can help solve. Thanks!


Tags: cloud
Automation that executes "create from template" button every Monday..
Asked by Robert Santiago:

Hi all,

I have a page with a "create from template" button which creates a page from a template. Would it be possible to have an automation that executes that button every Monday and creates the page? If so, I would appreciate any help.

Thanks.


Answers:
author: Ste Wright
body: Hi [@Robert Santiago](/t5/user/viewprofilepage/user-id/3904843)

You can do this, the rule would look something like this...

* **Trigger:** Scheduled
  * Run rule every = 1 weeks
  * On = Monday
* **Action:** Publish new page
  * *Enter Space, Parent page, Title, Template Space, and Template*

*---*

You can use smart values in the page title also - for example *{{now.format("dd/MM/yyyy")}}* would print that date - eg. 24/03/2024

Ste

comments: author: Robert Santiago
body: Hi Stephen,

That helps a whole lot! I am almost there. Just ran into a little issue since the custom template I have set up in that space does not show up under the automation option to create a page from template. The only options are Blueprint Templates.

**Do you know of any way to use a custom (user created) template in the "publish new page" part of the automation?**

Thanks!


author: Ste Wright
body: Hi [@Robert Santiago](/t5/user/viewprofilepage/user-id/3904843)

Custom templates do work for me; perhaps try duplicating / recreating the template?

Ste


Tags: cloud

questions-for-confluence

questions-for-confluence-cloud
Automation: How do I reference the data passed by a webhook in a scriptrunner script
Asked by Chen Qiu:

as title


Answers:
author: Bill Sheboy
body: Hi [@Chen Qiu](/t5/user/viewprofilepage/user-id/5438294)

What have you done thus far to solve this need?

For example, have you tried creating the rule or reviewed the documentation for that trigger type: <https://support.atlassian.com/cloud-automation/docs/jira-automation-triggers/#Incoming-webhook>

Kind regards,  
Bill

comments: author: Chen Qiu
body: *Hi Bill Sheboy*

How to use {{webhookData}} in scriptrunner script ?


author: Bill Sheboy
body: I recommend reviewing the ScriptRunner documentation to learn how to use smart values in a script.
I want to include the issue that triggered "Service Restriction Violation" in the email
Asked by koutarou ishibashi:

The following Automation service limits are causing the status to be "THROTTLED.

Daily processing time  
60 min per 12 hrs

<br />

If you are using the "Service Restriction Violation" trigger to send an email to the administrator, but the  
Is there a way to include the issue that triggered Jira Automation in the email?


Answers:
author: Bill Sheboy
body: Hi [@koutarou ishibashi](/t5/user/viewprofilepage/user-id/5308713)

I do not believe that is possible yet. That general idea of more information about limit-violating rules is included in this very large suggestion: <https://jira.atlassian.com/browse/AUTO-36>

If you need something more specific for your scenario, perhaps add a comment to that suggestion or create a new one in the same AUTO backlog, or using the feedback mechanisms: <https://jira.atlassian.com/secure/Dashboard.jspa>

Kind regards,  
Bill
Automatizacion para ticket externos
Asked by Alexis Nahuel Gonzalez:

Necesito generar una regla de automatizaci?n que me permita darle a mis proveedores externos la posibilidad de completar un ticket, el cual sea redirigido a un sector interno de mi compa?ia sin la necesidad de ser un intermediario de datos. ?Qu? tipo de desencadenador y condiciones ser?an los mas apropiados?


Answers:
author: Camilo Galleguillos
body: Hola [@Alexis Nahuel Gonzalez](/t5/user/viewprofilepage/user-id/5455503)

Parece ser que lo que indicas puede resolverse usando el portal de clientes de Jira Service Management, con el cual puedes habilitar un formulario p?blico con el cual los clientes pueden levantar requerimientos para tu equipo interno:

<https://confluence.atlassian.com/servicemanagementserver/configuring-the-customer-portal-939926277.html>

De acuerdo a la configuraci?n que elijas, puedes requerir que los usuarios se registren para poder levantar requerimientos, o puedes permitir el acceso p?blico. Estos requerimientos son luego manejados por tu equipo interno desde la vista de agente de JSM.

Adicionalmente, si ya tienes un proyecto de Jira Software en el cual est?n trabajando tus equipos internos, puedes crear automatizaciones que conecten el proyecto de Jira Service Management con su contraparte de Jira Software.
Filter by Assignee Team in Queues
Asked by Noa Waibel:

Is there a way to filter by Teams of Assignee? For example i want to see every Ticket which is assigned to someone in the "Development" Team in Opsgenie.


Answers:
author: Mauricio Heberle
body: Unfortunately, not yet.

<https://jira.atlassian.com/browse/JRACLOUD-81400>
Can groups be specified with smart values?
Asked by koutarou ishibashi:

In JIRA automation, I made the following settings in IF.

Related Topics: JQL  
key = {{issue.parent.parent.key}}

Matching JQL  
reporter in (XXXXXX:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX, XXXXXX:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)

Instead of setting individual user names in the reporter, I would like to specify the group "administrators". Could you please advise on the syntax for this?


Answers:
author: Bill Sheboy
body: Hi [@koutarou ishibashi](/t5/user/viewprofilepage/user-id/5308713)

That is not possible yet, and there are a couple of suggestions in the public backlog to add it.

A work-around, to avoid manually updating the list of user account id values, would be:

* call the REST API function to get the group's users with the Send Web Request action
* parse out the account id values to dynamically build the JQL

Kind regards,  
Bill


author: Nikola Perisic
body: Hello [@koutarou ishibashi](/t5/user/viewprofilepage/user-id/5308713)

Please refer to this link right here: [https://jira.atlassian.com/browse/AUTO-680#:\~:text=Currently%20there%20is%20no%20smart,need%20to%20add%20individual%20users](https://jira.atlassian.com/browse/AUTO-680#:~:text=Currently%20there%20is%20no%20smart,need%20to%20add%20individual%20users).

Currently, Atlassian is not supporting the smart values for groups.
Volume Restriction on Self-Hosted Bitbucket Runner
Asked by AliReza Beigy:

Based on the information provided in the \[Bitbucket Cloud documentation\]([https://support.atlassian.com/bitbucket-cloud/docs/run-docker-commands-in-bitbucket-pipelines/#:\~:text=build%20.%0A%20%20%20%20%20%20%20%20services%3A%0A%20%20%20%20%20%20%20%20%20%20%2D%20docker-,Running%20Docker%20commands,docker%20run%20%2D%2Dmount,-Full%20list%20of](https://support.atlassian.com/bitbucket-cloud/docs/run-docker-commands-in-bitbucket-pipelines/#:~:text=build%20.%0A%20%20%20%20%20%20%20%20services%3A%0A%20%20%20%20%20%20%20%20%20%20%2D%20docker-,Running%20Docker%20commands,docker%20run%20%2D%2Dmount,-Full%20list%20of)), the volume restriction should apply only to Bitbucket Cloud, not to self-hosted runners.  

However, when using a self-hosted runner, I encountered the following error:  

\`\`\`  
Error response from daemon: authorization denied by plugin pipelines: -v only supports $BITBUCKET_CLONE_DIR and its subdirectories  
\`\`\`  

This error suggests that volume mounting is restricted, even on my self-hosted runner, where I expected no such limitations.  

In my search for a workaround, I came across the suggestion to use \`scp\` to copy files to the server. However, I'm struggling to understand the rationale behind this security limitation, which restricts access to our own server directories.  

\*\*Question:\*\*  
- Is there a specific reason why this volume restriction is enforced even on self-hosted runners?  
- Are there any recommended approaches or best practices to? bypass or mitigate this restriction, aside from using \`scp\`?


Answers:
author: Patrik S
body: Hey [@AliReza Beigy](/t5/user/viewprofilepage/user-id/5564680) ,

and welcome to the community!

When using docker commands inside your pipeline, the self-hosted runner will by default use the same docker-in-docker image as builds executed in Atlassian infrastructure. This means that the same security restrictions applied to a build executed in the cloud will be applied to the self-hosted runner, such as the volume restrictions you mentioned.

However, in self-hosted runners, you have the ability to specify a custom docker in docker that doesn't implement those restrictions, and this would enable you to mount volumes outside the $BITBUCKET_CLONE_DIR, run the container in privileged mode and so on.

Following is one example of how you can specify a custom docker image in your pipeline :  

```
definitions:
 services:
  docker:
   type: docker 
   image: docker:dind #defining a custom docker in docker image, instead of using atlassian's default


pipelines:
 default:
    - step:
      runs-on:
       - self.hosted
       - linux
      script:
       - docker run -v /dev:/dev ubuntu:latest echo test #testing mounting a volume outside $BITBUCKET_CLONE_DIR 
      services:
       - docker
```

You can use the YAML above as a reference and adjust according to your build requirements.

I hope that information helps! Should you have any questions, let us know!

Thank you, [@AliReza Beigy](/t5/user/viewprofilepage/user-id/5564680) !

Patrik S


Tags: bitbucket-cloud

cloud
Jira Rule to Collect Isueses Components in Fix Version.
Asked by Arseni Vasilevski:

Hello, experts!

I want to create the following Cloud Jira Rule:

1. I open one of the tickets in Jira Release.
2. Go to Automatisation and run Manual Rule "get components"
3. Jira identified the current Fix Version (from the current.issue)
4. Find all tickets with Fix Version = Fix Version of the current issue.
5. Go throw all the tickets with this Fix Version and collect All Components.
6. Remove duplicates and Put all components in the comment below the ticket.

Context:

We use Jira Components as GitLab Repositories' names. It helps us to collect all Repositores that need to be Deployed to Prod in this Fix Version.

Usually, I go to the issue navigator and manually collect all components then inform DevOps, but it leads to risks of human error and duplicates.   

Spend 3 hours playing with Smart Values and Lookup table, but unfortunately failed even with ChatGPT.


Answers:
author: Kalyan Sattaluri
body: Hello [@Arseni Vasilevski](/t5/user/viewprofilepage/user-id/5454738)

Welcome to the community. I am guessing you know how to do until step 4, that is lookup issues based on fix version of the issue of manual trigger.

So once you have lookupIssues, you create a variable (myvar) then you can assign it all the components found in lookup like below:

{{#lookupIssues}}{{#components}}{{name}}; {{/}}{{/}}

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

This variable (myvar) is a text, you need to split it and convert to list and do a distinct like below:

{{myvar.split("; ").distinct}}

So, after lookup Action, you can do

* Action - edit comment with value = {{myvar.split("; ").distinct}}

Hope it helps.

comments: author: Arseni Vasilevski
body: [@Kalyan Sattaluri](/t5/user/viewprofilepage/user-id/5312306)   
That is amazing, you inspired me to help others. Thanks!   
No duplicates and works perfectly!

![Get components.png](https://community.atlassian.com/t5/image/serverpage/image-id/312797i3E319F818783D0F1/image-size/large?v=v2&px=999 "Get components.png")![Result.png](https://community.atlassian.com/t5/image/serverpage/image-id/312799i183470D3CAA24800/image-size/large?v=v2&px=999 "Result.png")


author: Ste Wright
body: Hi [@Arseni Vasilevski](/t5/user/viewprofilepage/user-id/5454738)

I got most of the way there - I just haven't found a method to de-duplicate yet. But I did get the components to post into a comment.

I've assumed there's only one Fix Version on the trigger issue.

---

* **Trigger:**Manual triggert from issue
* **Action:** Lookup issues
  * JQL - *fixVersion = {{triggerissue.fixVersions}}*
* **Branch:** Related Issues
  * Type = Current Issue
    * **Branch-Action:** Comment on Issue
      * Comment =
        * *{{#lookupIssues}}*   
          *\* {{components.name}}*   
          *{{/}}*

---

Did you find a method to de-duplicate by chance?

Ste


Tags: component
Bitbucket Kubernetes runners
Asked by POLU ANIL KUMAR REDDY:

Hi Team,

We have set up Bitbucket autoscaling runners on our Amazon EKS cluster following the official documentation.

**Issue:** The runners are frequently going offline. Additionally, old Kubernetes jobs are not being deleted automatically, and some pods are remaining in a "NotReady" state.

**For reference:** <https://bitbucket.org/bitbucketpipelines/runners-autoscaler/src/master/>

Regards:

Anil Reddy,


Answers:
author: Theodora Boudale
body: Hi Anil,

I have created a support ticket on your behalf that you can find here:

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

Can you please run the following commands to get the pod logs and share them in the support ticket I have created?

```
# this is the log of the runner controller
kubectl logs app=runner-controller -n bitbucket-runner-control-plane > runner-controller.log

# this is the logs of the specific runner
kubectl logs pods <pod-name> > runner.log
kubectl describe pods <pod-name> > runner-describe.txt
```

The support ticket is visible only to you and Atlassian staff, so anything you post there won't be publicly visible.

Please note that issues with networking, custom infrastructure configuration, are outside the scope of our support. However, we can do an initial investigation based on the logs and let you know if this is something we can assist with or not.

In case of unsupported issues, you can also reach out to our autoscaler group here:

* <https://community.atlassian.com/t5/Bitbucket-Pipelines-Runner/gh-p/bitbucket-runner-autoscaler-4k8s>

Kind regards,  
Theodora


Tags: autoscaler

bitbucket-cloud

cloud

pipelines

pipes

runner