youngmon/atlassian-qna huggingface dataset:
Linked Issues to be pulled in the same queue as the master ticket
Asked by Lars Barthel:

Hello there!

When there is a mass of issues about the same problem (e.g. "VPN inaccessible") from many users I want to link those issues under a "master" issue. (using the option "related to").

By linking these issues to the master issue the linked "child" issues should be moved into the same queue as the master issue they are linked/related to.

Is there an automation which pulls the linked issues into the mentioned queue?

Thx in advance!


Answers:
author: Lars Barthel
body: EDIT: Just looked at it from the wrong angle at first, now I got it.
Issue Type or Component change to specific value notify user
Asked by John Kalla:

Maybe our Service Desk instance doesn't have all the automation options, but I can't figure out how to notify a user when an issue Component is changed to a specific value, or when the issue Type is changed to a specific value. I don't want to start with "Issue Created", as our issues start with a different value than they'll have eventually.

For example, I would like to notify User A when the issue Component is changed to "Programmatic." I would like to notify User B when the issue Type is changed to "Data Request." I can't for the life of me figure out how this is possible, assuming it is. Any help would be appreciated! We're running Jira Service Desk v8.22.4 on our own servers, not connected to the Internet in any way.


Answers:
author: Nic Brough -Adaptavist-
body: You can't do this without an Automation or Scripting app that can pick up "issue edit" and look at a field to decide who to notify.

comments: author: John Kalla
body: Ah, thanks. Darnit.


Tags: jira-service-desk
How to parse an issue status from comment field
Asked by serge calderara:

Dear all,

From an external email we are able to create a ticket issue in Jira Service Desk.  
This external email syntax is used to communicate between Jira and an external system.

When the created ticket is set to COMPLETED from Jira Agent people, a notification is send automatically to the external system which need to approve that ticket is effectively resolved as completed

For that when the external system reply to the notification email, its reply body is with the syntax below :

FINAL STATUS : CLOSE

Then when the issue comment is updated, I need thought automation to :

- look for the string "FINAL STATUS"

- Read the value of the status

How can I parse this string and get its value in order that with the status value read I can then transition automatically the ticket ?

Regards


Answers:
author: serge calderara
body: Hello I solve it.

No need for any rest api as you did not catch what I ment.  
All was done in Jira automaton and with filter condition and smart value I am able to catch the string and transition to the desired status based on return value


author: Bill Sheboy
body: Hi [@serge calderara](/t5/user/viewprofilepage/user-id/3385932)

In order to transition the issue with an automation rule, I believe you need the specific status value's id. To get that from the name you would need to call the REST API to get all of the status values for the project, and then grab the one which matches your name.

If you want to try this with Jira Cloud, here are some references on calling the REST API from a rule, the specific method you will need to get the status values, and how to filter/return the correct status:

* <https://community.atlassian.com/t5/Jira-articles/Automation-for-Jira-Send-web-request-using-Jira-REST-API/ba-p/1443828>
* <https://docs.atlassian.com/software/jira/docs/api/REST/1000.824.0/#api/2/project-getAllStatuses>
* <https://community.atlassian.com/t5/Automation-articles/Filtering-smart-value-lists/ba-p/1827588>

Kind regards,  
Bill


Tags: jira-service-management
Create a Task in the same Epic of my triggered issue if only if this Task does not exist
Asked by Tony Conteiro:

I have a Story in an Epic. When this Story changes its status, I would like it to create a Task in the same Epic as my Story provided that this Task does not already exist.

Here is a screenshot of the automation. I block at the last condition: **create a Task in the same Epic of my triggered issue if and only if this Task does not exist.**

I use the Task Summary to check my condition. All ideas are welcome even if the automation needs to be completely revised.

Thank you for your help.


Answers:
author: Stefan Salzl
body: Hi [@Tony Conteiro](/t5/user/viewprofilepage/user-id/4479501) ,

As far as I got your requirement correctly the following rule should do the work. Some details for description:

the "current issue" branch will still refer to the trigger issue. Therefore I added another epic-branch to split up the 2 actions.

In the 2nd epic branch the rule checks if there is any task with a summary like "Documentation" within the epic via jql. If not the task will be created (see the 3rd screenshot) and added the epic link (copied from trigger issue as the story is the trigger and the task should be in the same epic).

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/221029iB0B59699392B86B2/image-size/large?v=v2&px=999 "image.png")![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/221031iCFAB105394D10E0B/image-size/large?v=v2&px=999 "image.png")![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/221032iA748548222737982/image-size/large?v=v2&px=999 "image.png")

Hope this was helpful and solves your problem.

Best  
Stefan

comments: author: Tony Conteiro
body: Hello [@Stefan Salzl](/t5/user/viewprofilepage/user-id/4616993) ,

Thanks a lot its works !!

Kind regards


author: Stefan Salzl
body: AWESOME ? good to know you got that working ?


author: Tony Conteiro
body: ![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/220882i1C8E4D83D5CF90A2/image-size/large?v=v2&px=999 "image.png")![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/220883i4C6EE111C56E37EF/image-size/large?v=v2&px=999 "image.png")


Tags: cloud
Why I am not able to see any Rules in the automation library?
Asked by Executive Assistant:

I am not able to see any Rules in the automation library.


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

Where are you looking for the library: the one in documentation or the one in your project? Both appear to be working.

The one in documentation is here: [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)

Kind regards,  
Bill


Tags: cloud
GraphQL (probably a feature request)
Asked by Ken Young:

This is probably more of a "Feature Request" question than a how to question, but with some of the Atlassian API's seeming moving from REST to Graphql (like the Compass product), are there any best practices in Automation to be able to integrate products using automation. If not, what is the proper channel to create an automation feature request. Thx


Answers:
author: Carlos Garcia Navarro
body: Hi [@Ken Young](/t5/user/viewprofilepage/user-id/4596309) ,

I'm not sure this addresses your question but you may find this interesting: <https://www.atlassian.com/atlascamp/watch-sessions/2019/advanced-app-development/designing-and-running-a-graphql-api>

To see existing feature requests and for instructions on how to report new ones you can check this out: <https://jira.atlassian.com/secure/Dashboard.jspa>


Tags: graphql
I do not see my repository on bitbucket
Asked by Dario Giovanni Pell?:

I do not see my repository on bitbucket


Answers:
author: Syahrul
body: G'day, [@Dario Giovanni Pell?](/t5/user/viewprofilepage/user-id/5481563)

Welcome to the community!

Have you attempted to access the workspace directly by selecting it from the list at <https://bitbucket.org/account/workspaces/>

Once you have done that, click on the workspace you want to view and select the repositories tab to see the list of repositories within it.

Let me know how it goes.

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
Custom pipeline suddenly failing after running properly for years
Asked by Michael Melvin:

Good morning,

Hoping to get some help here. We have a custom pipeline that builds a parent Maven module, waits for the artifact to be uploaded, and then runs parallel steps to build child Maven modules.

It has been working fine for years, and suddenly stopped working with failures last weekend. I looks like it no longer is waiting for (or is unable to detect) the status of the parent build status:

Currently the output of the failure is:

*** ** * ** ***

Status: Downloaded newer image for bitbucketpipelines/trigger-pipeline:4.3.1  
WARNING: New version available: atlassian/trigger-pipeline '4.3.1' to '5.5.1'  
? Build started successfully. Build number: 9832.  
Follow build logs at the following URL: [https://bitbucket.org/XXXXXXXXX/microservices-clients/addon/pipelines/home#!/results/9832](https://bitbucket.org/pointchain/microservices-clients/addon/pipelines/home#!/results/9832)  
INFO: Waiting for pipeline to finish  
INFO: Attempt number 1: Getting build info.  
Traceback (most recent call last):  
File "/usr/bin/main.py", line 192, in <module>  
pipe.run()  
File "/usr/bin/main.py", line 172, in run  
success, message = self._check_build(build_number, auth)  
TypeError: cannot unpack non-iterable NoneType object  

*** ** * ** ***

Previously, the build output looked like:  

*** ** * ** ***

Status: Downloaded newer image for bitbucketpipelines/trigger-pipeline:4.3.1  
WARNING: New version available: atlassian/trigger-pipeline '4.3.1' to '5.5.1'  
? Build started successfully. Build number: 9801.  
Follow build logs at the following URL: [https://bitbucket.org/pointchain/](https://bitbucket.org/pointchain/microservices-clients/addon/pipelines/home#!/results/9801)[XXXXXXXXX](https://bitbucket.org/pointchain/microservices-clients/addon/pipelines/home#!/results/9832)/addon/pipelines/home#!/results/9801  
INFO: Waiting for pipeline to finish  
INFO: Attempt number 1: Getting build info.  
INFO: Build number 9801 for XXXXXXXXX is PENDING, waiting for pipeline to finish...  
INFO: Attempt number 2: Getting build info.  
INFO: Build number 9801 for XXXXXXXXX is IN_PROGRESS, waiting for pipeline to finish...  
...  
INFO: Build number 9801 for XXXXXXXXX is IN_PROGRESS, waiting for pipeline to finish...  
INFO: Attempt number 26: Getting build info.  
? Build number 9801 for XXXXXXXXX@YYYYYYYYYYY finished successfully.  
? Pipe finished successfully.


Answers:
author: Michael Melvin
body: I have updated the triggers to 5.5.1 as well as changed BRANCH_NAME to REF_NAME and everything seems to be working fine in case anyone else hits this issue.


author: Rafael Pereira
body: Done the same here, just upgrading from 5.1.0' to '5.7.0' in my *bitbucket-pipelines.yml* and **worked fine**!


Tags: bitbucket-cloud

cloud
Bitbucket Repo - Unable to Find User to add to Permissions
Asked by Lexi:

User has an account.

User is added to other repos in the system.

When I type his name he will not come up in the search list.

When I type other people's names they come up in the search list.

I saw 2 other posts for this same issue with no answer from several years ago.

What else can I try?


Answers:
author: Theodora Boudale
body: Hi Lexi,

Can you please confirm if this concerns Bitbucket Cloud (repo URL starting with <https://bitbucket.org/>)? I see that your question has the tag 'bitbucket-cloud', but I don't see any Bitbucket Cloud account with your email address, so I just want to make sure that's the product you are using.

If this issue indeed concerns Bitbucket Cloud that you are using with a different email address:

* Can you please confirm if you are going to **Repository settings \> Repository permissions \> Add users or groups**? Is this where the user doesn't show up when you type their name, or somewhere else?
* Something may be out of sync in our systems with this user and their permissions. I can try to sync, but I need to know who that user is. Can you ask the user to log in to <https://community.atlassian.com/> with the email of their Bitbucket Cloud account and leave a reply here in this post? No need to mention their email address, I will be able to see it if they leave a reply in the post.

Kind regards,  
Theodora


author: Lexi
body: i did a work around and added the user to a group and added the group but would like to know what is going on here


Tags: bitbucket-cloud

cloud

permission

repos

repository
Cloning from github while running composer in pipeline fails
Asked by Andreas G?hring:

We are having a problem that occurs not very often, but it is annoying.  
We try to run composer in a pipeline step and to install pimcore v11 packages that sometimes fails.  
It is always the same error and we do not have a clue what the problem could be, because these are public repositories but the result is either a connection timeout or permission denied.

Does anyone have a hint what could cause the problem, because we cannot control the connection params, it should just work.

Following the error:

    Downloading php-http/discovery (1.19.4)

Failed to download php-http/discovery from dist: curl error 28 while downloading [https://api.github.com/repos/php-http/discovery/zipball/0700efda8d7526335132360167315fdab3aeb599:](https://api.github.com/repos/php-http/discovery/zipball/0700efda8d7526335132360167315fdab3aeb599) Connection timeout after 10002 ms  
Now trying to download from source

      - Syncing php-http/discovery (1.19.4) into cache

In Git.php line 471:

Failed to clone <https://github.com/php-http/discovery.git> via https, ssh protocols, aborting.  
- <https://github.com/php-http/discovery.git>  
Cloning into bare repository '/composer/cache/vcs/https---github.com-php-http-discovery.git'...  
fatal: unable to access '<https://github.com/php-http/discovery.git/>': Failed to connect to [github.com](http://github.com) port 443 after 131203 ms: Connection timed out

- [git@github.com](mailto:git@github.com):php-http/discovery.git  
Cloning into bare repository '/composer/cache/vcs/https---github.com-php-http-discovery.git'...  
[git@github.com](mailto:git@github.com): Permission denied (publickey).  
fatal: Could not read from remote repository.  
Please make sure you have the correct access rights and the repository exists.


Answers:
author: Theodora Boudale
body: Hi Andreas,

I would recommend creating a support ticket for this issue, as we're probably going to need additional debug information and check the build logs.

You can create a ticket via <https://support.atlassian.com/contact/#/>; in "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as a product. When you are asked to provide the workspace URL, please make sure you enter the URL of the workspace that is on a paid billing plan to proceed with ticket creation.

Kind regards,  
Theodora

comments: author: Nicolas Charpentier
body: Hello,

Looks like a global issue, we have this timeout in 1 out of 10 pipeline runs, for some months.

Maybe there is something wrong in bitbucket runners network.


author: Theodora Boudale
body: Hi Nicolas,

You can create a ticket with the support team for investigation.

I provided the steps to create a support ticket in my previous reply.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
My customer <redacted> (bitbucket.org/workspace) bought premium plan, but only free plan accessible
Asked by Hein Pretorius:

\<redacted\> purchased Bitbucket Premium. Their plan on the portal states they are still on the free plan. How can they associate their paid for plan and access it for use?

\<screenshot removed\>

<br />

We need urgent assistance please?  
The customer is approaching 60 plus days behind schedule for a project that require access to the paid for Premium version.


Answers:
author: Theodora Boudale
body: Hi [@Hein Pretorius](/t5/user/viewprofilepage/user-id/5481413) and welcome to the community!

The screenshot you shared shows that this workspace is on the Free plan and there is no credit card on file (which is required when upgrading to a paid billing plan).

An admin of the workspace needs to select **Upgrade plan** on the page you shared, select the Premium plan, then enter their billing details, and upgrade.

Please keep in mind that a billing plan is tied to a certain workspace. If they accidentally upgraded the billing plan of a different workspace to Premium, they can downgrade it to Free and upgrade to Premium for the workspace you shared.

Just a heads up, I removed names, workspace id, and the screenshot from your post, as this is a public forum. Please do not share publicly personally identifiable information or URLs of private repos/workspaces.

If there are still issues, then one of the workspace's admins can reach out to our billing and licensing team via <https://www.atlassian.com/company/contact/purchasing-licensing#/>. We need the admin to reach out, otherwise we can't share any info in the ticket.

Kind regards,  
Theodora


author: Aron Gombas _Midori_
body: [@Hein Pretorius](/t5/user/viewprofilepage/user-id/5481413) You should definitely open a ticket for Atlassian Support. This is a community site, and although there are Atlassian staff members here, the answer will probably slower.


Tags: unknown-hosting-type
How to use google artifact registery for a pipeline service image
Asked by payamnj:

Hi,

I am trying to use a docker image from a private google artifact registry as an image for a pipeline service as documented [here](https://support.atlassian.com/bitbucket-cloud/docs/docker-image-options/#Username).

Since Bitbucket doesn't have support for OIDC for GCP, I created just a user account with required permission to read from the google artifact registry. Also tested the user by pulling an image locally and it worked, but when I am using the same user in the pipeline, I get the 401 unauthorised error with the message, failed to fetch oauth token. Is it a known problem or am I doing something wrong here?

I am sure that the username and password are defined correctly in secret variables since I have printed the MD5 of them in the pipeline and it was matched.


Answers:
author: Theodora Boudale
body: Hi [@payamnj](/t5/user/viewprofilepage/user-id/5481260) and welcome to the community!

You can check the details on the following page regarding how to use an image from GCR:

* <https://support.atlassian.com/bitbucket-cloud/docs/use-docker-images-as-build-environments/#Private-images-hosted-by-Google-Container-Registry--GCR->

Please feel free to let me know how it goes and if you have any questions.

Kind regards,  
Theodora

comments: author: Gisle Rognerud
body: But this applies for [container](https://console.cloud.google.com/marketplace/product/google-cloud-platform/container-registry) registry, while in this case it is [artifact registry.](https://cloud.google.com/artifact-registry)

I have the same issue, and have checked, checked and triple checked the configuration and it does not seem to work once you switch to artifact registry.

We have tested with a json credentials with ample permissions.

We have tried base64 encoding the json and just pasting it in as a variable

We get:  
failed to authorize: failed to fetch anonymous token: unexpected status: 403 Forbidden


author: payamnj
body: Using the service account json key as it was documented in the link that [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) sent, fixed the issue for me.?

[@Gisle Rognerud](/t5/user/viewprofilepage/user-id/5484191) since you are getting 403 may be the problem is that your service-account has permision to access the container registery but not the artifact registery! So I guess if you change the service account permissions it should work.


Tags: bitbucket-cloud

cloud
Bitbucket pipelines and Azure ACR runner image
Asked by Horia Naidin:

Hi, we have an issue with bitbucket-pipelines and a private docker registry (azure acr).

This pipeline fails at the second step (init step runs successfully), with error message:
> rpc error: code = Unknown desc = failed to pull and unpack image "private.azurecr.io/runners/azure-agent:v1": failed to resolve reference "private.azurecr.io/runners/azure-agent:v1": failed to authorize: failed to fetch oauth token: unexpected status: 401 Unauthorized

```
options:
  docker: true

image:
  name: private.azurecr.io/runners/azure-agent:v1
  username: $AZURE_USERNAME
  password: $AZURE_PASSWORD

```

```
definitions:
  steps:
    - step: &init
        name: Initialise
        services: [docker]
        script:
          - echo "init"
    - step: &build
        name: Build
        services: [docker]
        script:
          - echo "build"
```

```
pipelines:
  pull-requests:
    '**':
      - step: { <<: *init, deployment: Preview }
      - step: { <<: *build }
```


Answers:
author: Horia Naidin
body: While debugging I found the issue: an out of date AZURE_PASSWORD


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
bitbucket pipeline failing when provisioning resource to Azure cloud using terraform scripts
Asked by Vivek Bairi:

Hi,

I am trying to deploy resources in Azure cloud using terraform scripts and bitbucket pipelines.

It's getting failed at initial stage. error screenshot has been attached

Unable to figure out why it's unable find terraform

Error on Build line 66:  
/opt/atlassian/pipelines/agent/tmp/shellScript13245989058089105971.sh: line 5: terraform: not found

Could you please help me on this

![bitbucket-error.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/319739i75BBBCD37C5F1FC9/image-size/large?v=v2&px=999 "bitbucket-error.jpg")

Below is my pipeline script  
image: hashicorp/terraform:light

pipelines:  
default:  
- step:  
name: Terraform init \& Plan  
script:  
- terraform --version  
- terraform init  
- terraform validate  


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

I believe the culprit is that you have added in this repo a **Repository variable** with the name PATH. The shell uses PATH to find commands, so if you replace its usual list of locations, then some commands won't work anymore.

If you want to add a directory to the environment variable PATH, you can use a command like the following in your step's script (and remove the PATH variable from your Repository's variables):

```
- export PATH=$PATH:~/opt/bin
```

If this Repository variable is not related to the PATH environment variable that the shell uses to find commands, you can change its name to something different.

Please feel free to let me know how it goes and if you have any questions.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
account
Asked by Cassandra B. Fetalcorin:

how can I access my bitbucket account since my 2FA setup in my phone is gone since it was broken? Now Bitbucket account asking me for a recovery code but I can't. Can you help to retrieve my account using my phone number or my email account that has been registered to it?


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

On the screen where you are asked to provide a 2FA code, there is a link **Forgot code?** that you can use to request a 2FA recovery email. The 2FA recovery email is sent approximately 24 hours after you requested it, and it will have a link that will allow you to disable 2FA.

I can see in our system that you have requested a 2FA recovery email several times. The last recovery email was sent to your email address yesterday. Can you please confirm if you have received it?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud