youngmon/atlassian-qna huggingface dataset:
Is there an efficient way to generate sets of tasks based on an issue field?
Asked by Ryan:

I have a project where requests are logged for different areas of work. Based on the area of the project, I have automations that generate sets of tasks linked to that request.

Currently, I have a number of automations that trigger on issue creation and check an issue field to determine what tasks to create. This has led to dozens of automations running when an issue is created. All but one will run in fractions of a second, but that's still time that adds up.

Because these tasks are being linked together in different ways based on which ones need to be done first, and we need for different sets of tasks per area, I cannot consolidate everything into single automation or use "Create sub-tasks".

Is there a more efficient way to accomplish this?


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

An approach seems related to what you are trying to improve. For example,

* Are you trying to reduce the number of automation calls per issue creation?
* How soon after issue creation do you need the additional tasks/sub-tasks?
* Etc.

Unfortunately, rules are limited to 64 components (I believe) so no ginormous rule to cover all cases with if/else... and there is no action yet to call-out to another rule, as a sub-routine, to divide and conquer.

One alternative would be to use scheduled triggers, JQL, and an indicator field to say "processed". Such as:

* Trigger: scheduled with JQL to select one area of work and for which the indicator is not set to "processed"
* Action: add the tasks as needed
* Action: set the indicator field to "processed" so it doesn't get processed again

You could schedule these as often as you believe you would need the tasks available. And clone the rule for each area of work type. The rules should only fire once per issue creation due to the JQL and the processed indicator.

Best regards,

Bill

comments: author: Ryan
body: My goal is to reduce total processing time. With many automations firing when an issue is created, it feels like there's a lot of wasted time.

I'm going to give a scheduled method a try. That way, one will only run once a day rather than every time an issue is created.

Thanks for the idea!


author: Bill Sheboy
body: Ryan, if this solution approach works out for you, please consider marking the question "answered"... that will help others in the community find answers faster to similar questions.

Thanks!


Tags: cloud
Using #Lookupissues for a bulk action
Asked by Nofar Ben Kereth:

Hey,

I'm using the Lookupissues smart values in order to send a list of issues as a Slack message. I would like to perform an action on this list of items right after the message has sent.

How is this possible? I know you can't perform action on bulk if issues, but anyone found any workaround? maybe triggering another rule or something?

Thanks,

Nofar


Answers:
author: frother
body: Hi Nofar,  

You would need to add a related issues action, using JQL and repeat the query there.   

![Screen Shot 2020-11-06 at 9.40.14 am.png](https://community.atlassian.com/t5/image/serverpage/image-id/117295i4E46B14CCE01A42A/image-size/large?v=v2&px=999 "Screen Shot 2020-11-06 at 9.40.14 am.png")  

Cheers,  
Scott.
calling the external api and update the custom field
Asked by Gauraw Rawat:

I have a requirement that after clicking on the create button, trigger or listener will be happened and it will fetch and read the data from the SAP API which is XML data and based on the xml response, update the custom field after creating the ticket.

Could you please help me in this scenario as it is urgent for me ?

Thank you.


Answers:
author: Nic Brough -Adaptavist-
body: You will need an app to do this for you, or enable you to write the required code to do it.

Have you got a tool for this yet?

comments: author: Gauraw Rawat
body: Hi Nic,

Thank you for your reply.

Do you have some script listener code for demo to fetch the data and read it as XML response or Json response ?

It would be helpful if you could provide something.

Thanks.


Tags: ajax

cloud

jira-cloud

rest-api
How can I update a custom numerical field from sub-tasks to parent
Asked by Nitzan Soreq:

I'm using Jira cloud, Next gen.

I would like to create automation rule for updating a parent custom field from sum of sub-tasks custom field.

To be more specific -   
I created a numeric custom field for "Story points estimate" that is used in all issue types.

I would like to reflect the sum of all the sub-tasks story points in the parent issue.

How can I do that?


Answers:
author: Andreas Knecht
body: Hi [@Nitzan Soreq](/t5/user/viewprofilepage/user-id/4122005) ,

Please see <https://community.atlassian.com/t5/Marketplace-Apps-Integrations/How-can-you-automatically-sum-the-story-points-of-all-subtasks/qaq-p/863364> for an answer to this question.

Cheers,  
Andreas

comments: author: Nitzan Soreq
body: Thank you! seems to be working!
Features can be created once the epic is in certain status. (Feature is a Child of Epic in our hiera
Asked by Vivek Karna:

We have a requirement where Feature that is child issues can be created only when the Parent (Epic) is in certain status like (Committed, Ready for dev review etc ).

Please advise how to proceed .

I have add ons like JMWE and Script Runner.


Answers:
author: David Fischer
body: Hi,

Are you on Jira Server/DC or Cloud?

In both cases, you can use a Related Issue Status Validator from our JMWE app on the "Create" transition of the story/task/whatever workflow (the workflow(s) of the issues that can belong to an Epic). This will not _hide_ the Create button (obviously) but it will display an error message when you try to submit your new issue.

comments: author: Vivek Karna
body: Hi David ,

Can you help with the steps too please?

I am using Jira server with JMWE APP


author: Vivek Karna
body: Please find the screenshot of the validator i have used. Please advise ![POSTFUNCTION.png](https://community.atlassian.com/t5/image/serverpage/image-id/115787iECDDD17BA805CBE4/image-size/large?v=v2&px=999 "POSTFUNCTION.png")


author: David Fischer
body: You have selected the "issue/sub-task" link type, which is *not* the same as Jira Software's Epic/Story relationship. Please select "Epic o the current issue" instead.


author: Vivek Karna
body: David , Doesnt seem to work .

Can we have a call on zoom if thats sounds ok to you ?


author: David Fischer
body: Vivek,

you need to open a support request with Innovalog: <https://innovalog.atlassian.net/servicedesk/customer/portal/8>

We don't offer Zoom-based support though. You'll need to share your current Validator configuration and the problem you're encountering.


Tags: workflow
Smart Value: Comment from current issue screen?
Asked by Martin Boehme:

Hi guys,

I want to **send a custom e-mail when issues transition to a specific status**.

During this transition, there is an issue screen, so the user can leave a **comment** during this transition.

In case there is a comment, it should be included in the e-mail.

So far it's quite easy with Jira Automation:

* Trigger: Issue transitioned
* Action: Send Mail
  * using this smart value in the mail body: {{issue.comments.last.body}}

Works like a charm. But: in case the user leaves no comment during the transition, the above automation **will just use the latest comment** on the issue in the mail body.

But in this case, no comment should be included in the e-mail!

How do I implement this?

PS: [Here is the documentation](https://support.atlassian.com/jira-software-cloud/docs/smart-values-general/#Smartvalues-general-{{issue.comments}}) about using comments as smart values. It did not help me.


Answers:
author: Yvan Martin
body: Hi Martin,  

Developer from Automation here.  

Unfortunately we don't receive an event containing both the issue transition and comment together, so we cannot provide a reliable smart value that would indicate that comment came from that transition screen.   

You would have to use last comment like you have, potentially you could also check the created date was within a certain timeframe like another user suggested, but there's no guarantee on ordering if that issue comment would have gone through. Adding a "Re-fetch issue data" just before checking last comment might help with that, which might be good enough for your use-case.  

Apologies for the inconvenience.   

Cheers.


author: Manon Soubies-Camy
body: Hi [@Martin Boehme](/t5/user/viewprofilepage/user-id/351171),

I have just tested the following automation rule and I think it would meet your need:

![Capture d??cran 2020-10-28 ? 11.21.41.png](https://community.atlassian.com/t5/image/serverpage/image-id/116060iAD1705A3C9A3202E/image-dimensions/589x331?v=v2 "Capture d??cran 2020-10-28 ? 11.21.41.png")

In the "if" block, you send an email with the latest comment, and in the "else" one you don't.

Let me know if this helps!

- Manon


Tags: cloud

comment

smart-value
Details about rate limits for Project and Workspace API resources
Asked by Andrew:

I was looking through the documentation for the API request limits here:  
[API request limits \| Bitbucket Cloud \| Atlassian Support](https://support.atlassian.com/bitbucket-cloud/docs/api-request-limits/) , but couldn't find any information on what the rate limits are for specific resources, namely those for workspaces and projects.

The specific endpoints that I intend to use are:

1. Listing projects in a workspace
2. Creating projects in a workspace
3. Getting a project in a workspace
4. Listing explicit user permissions for a project
5. Updating explicit user permissions for a project
6. Deleting explicit user permissions for a project

What would be the rate limit applied to each of these endpoints, if any? This is specifically for authenticated calls, using a workspace access token were possible and an app username and password where necessary.


Answers:
author: Ben
body: Hi Andrew,

Welcome to the Bitbucket Cloud community!

For authenticated API calls, this is **1,000/hour** and this is applied to all requests nested under the **/1.0/** and **/2.0/** endpoints.

The table shown in that documentation does list the /2.0/repositories endpoint specifically as it is the most commonly used endpoint, but above this - it refers to all endpoints:
> Rate limits are divided into a one-hour rolling window for both authenticated and unauthenticated requests, which means that for every minute that passes, you will be provided that time to run new requests but the total you can run consecutively over an hour is 1,000.

comments: author: Andrew
body: Thanks Ben, much appreciated.


Tags: bitbucket-cloud

cloud
[BUG] azure-aks-helm-deploy errors with kubelogin command not found
Asked by michal_koval:

Hello, i just try to use azure interactive login for helm deployment and package errors with following errors:

Switched to context "aks".  
kubelogin convert-kubeconfig -l spn  
[//common.sh](https://common.sh/): line 108: kubelogin: command not found  
helm ver v3.5.4  
helm cmd upgrade  
...and later...  
Error: Kubernetes cluster unreachable: Get "[https://clusterUrl](https://aks-cmdv3-dev-bb5965f7.hcp.northeurope.azmk8s.io/version?timeout=32s)": getting credentials: exec: executable kubelogin not found  
kubelogin is not installed which is required to connect to AAD enabled cluster.


Answers:
author: Oleksandr Kyrdan
body: Hi [@michal_koval](/t5/user/viewprofilepage/user-id/3776692)

A new pipe's version with updates and fix is released:

```
atlassian/azure-aks-helm-deploy:3.2.0
```

with the next updates:

* bump mcr.microsoft.com/azure-cli:2.56.0

* bump and pin kubernetes v1.29

* add kubelogin v0.1.0

<br />

Best regards,  
Oleksandr Kyrdan


author: Igor Stoyanov
body: Hi [@michal_koval](/t5/user/viewprofilepage/user-id/3776692) . We will investigate this and notify you.  

Regards, Igor


Tags: azure

bitbucket-cloud

cloud

helm

kubernetes
How to filter environments by slug using the Rest API
Asked by Davide Bizzarri:

I'm trying to retrieve the environment with the slug "production" with this request

```
http --verbose --auth username:app_password "https://api.bitbucket.org/2.0/repositories/org/repo/environments" q=="slug = \"production\""
```

which makes the following request:

```
GET /2.0/repositories/org/repo/environments?q=slug+%3D+%22production%22 HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Authorization: Basic my_auth
Connection: keep-alive
Host: api.bitbucket.org
User-Agent: HTTPie/3.2.2
```

but instead of returning only the matching environment, the request returns all environments ignoring the filter.

Because the documentation \[1\] doesn't specify which filters are usable, I've tried to guess the request from the generic filter documentation \[2\], without success apparently

1. <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-deployments/#api-repositories-workspace-repo-slug-deployments-get>

2. <https://developer.atlassian.com/cloud/bitbucket/rest/intro/#filtering>


Answers:
author: Theodora Boudale
body: Hi Davide,

I'm afraid that the environments endpoint does not support filtering at the moment.

What you could do is save the output of the API call in a file and then use another tool that filters JSON data (for example, jq is one such tool) to get the environment you want.

We have a request to support filtering for this endpoint: <https://jira.atlassian.com/browse/BCLOUD-22285>

You can add your vote to it (by selecting the **Vote for this issue** link) to express your interest.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Newline in report description
Asked by Dani Asztalos:

I'm trying to add a new report for a commit with multiline description using <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-reports/#api-repositories-workspace-repo-slug-commit-commit-reports-reportid-put>

Passing "line1\\nline2\\nline3" in the details parameter results in "line1 line2 line3", passing "line1\\\\nline2\\\\nline3" results in "line1\\nline2\\nline3".

What else should I do to achieve multiple lines in the description of the report?


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

I'm afraid that it is not possible to add new lines in the details field of the reports API at the moment.

We have a bug report about this in our issue tracker:

* <https://jira.atlassian.com/browse/BCLOUD-20132>

You can add yourself as a watcher (by selecting the **Start watching this issue** link in the bug report) if you'd like to get notified via email of any updates. You can also select the link **This affects my team** to indicate you are affected by this issue.

Our development team will post an update on that bug report when this is fixed. Please note that we don't provide ETAs and bug fixing is implemented as per our policy [here](https://confluence.atlassian.com/support/atlassian-cloud-bug-fix-policy-206865884.html).

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Your account now has more than 30 repositories created today.
Asked by Giedrius:

Hello,

I'm migrating my companies repositories from bitbucket server to bitbucket cloud. And got warning message, that my account reached repositories limit. How can I extend this limit?  

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


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

For workspaces on the Free plan we have a limit of 30 repositories per day to prevent abuse (Bitbucket Cloud has been often targeted by spammers).

I'm afraid that we cannot override this limit and I will reach out to my team internally to adjust this error message.

You should be able to create more repos the next day (up to a maximum of 30 per day).

Kind regards,  
Theodora


author: Vedant Kulkarni
body: Please confirm that you have not been hit by the global outage. [Atlassian Status](https://status.atlassian.com/)

comments: author: Giedrius
body: For me everything is operational.


Tags: bitbucket-cloud

cloud
View PDF document directly on bitbucket
Asked by SandeepSingh R:

Hi community,

I just needed to understand that is there any addon or viewer where i can view and review the PDF document committed without downloading on my local


Answers:
author: Syahrul
body: G'day [@SandeepSingh R](/t5/user/viewprofilepage/user-id/5269410)

Unfortunately, we don't have an available add-on on the Marketplace to allow you to view the binary files in commit view. The only way to view them is mainly by downloading them now.

If you are interested in this feature, please provide me with a use case. I'd be happy to raise a new feature request for you.

Regards,  
Syahrul

comments: author: SandeepSingh R
body: I don't want to download, if i click on raw view it will get downloaded . I don't need this. I remember directly viewing the file and commenting on it


author: Syahrul
body: Hey [@SandeepSingh R](/t5/user/viewprofilepage/user-id/5269410)

It's possible that you're viewing files from Bitbucket Server, as Bitbucket Cloud doesn't presently have this capability.

Both products are on different platforms and don't share all the same features or behaviors, which could lead to discrepancies between them.

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
We are looking to do a merge check. Based on the following rule we will allow merge to proceed/.
Asked by Jack Milunsky:

we want to configure as an example that we have one approval from each of the following groups .. Dev, PSO, QA. And if that evaluates to true then the merge button would be enabled.

Do you think this would be possible with this plugin?


Answers:
author: Ulrich Kuhnhardt _IzymesCo_
body: Hi Jack,

welcome to the community.

I'm not sure which plugin you have in mind? Are you going to build one?

I can certainly recommend our [Workzone plugin](https://marketplace.atlassian.com/apps/1211303/workzone-pullrequest-workflow?hosting=datacenter&tab=overview) for Bitbucket server and Datacenter.

You can configure reviewer groups for repository [branches, directories and files](https://izymes.com/docs/workzone-add-file-and-group-reviewers-to-your-pull-requests/), and configure a merge-check group quota \[1\].

Workzone will then check reviewer approvals for each group and only allow to merge if there are at least N approvals for each reviewer group.

Best, Ulrich

// [Izymes](https://marketplace.atlassian.com/vendors/1210584/izymes-pty-ltd)

\[1\] <https://izymes.com/docs/workzone-feature-merge-control-benefits-of-general-quota-vs-group-quota/>


Tags: bitbucket-server

server
Manually triggered pipeline stages don't allow deployment promotion?
Asked by Nathan Zipf:

Hi all,

I just discovered stages which I have found useful for grouping up build and deploy steps of my pipeline for each environment.

Is it a known limitation that you can't 'promote' from a deployment **stage**? I could not find this anywhere within the stage documentation and understand that it is in beta, so not sure if it's a bug or just an undocumented limitation.

Example pipeline using stages as follows (no ability to 'promote' within deployments tab):  

```
pipelines:
  default:
    - stage:
        name: Build & Deploy Test App
        deployment: Test
        trigger: manual
        steps:
          - step:
              name: Build App
              script:
                - **build**
          - step:
              name: Deploy App
              script:
                - **deploy**
    - stage:
        name: Build & Deploy Production App
        deployment: Production
        trigger: manual
        steps:
          - step:
              name: Build App
              script:
                - **build**
          - step:
              name: Deploy App
              script:
                - **deploy**
```

In this example without stages, this would allow 'promotion' from Test to Production deployment:  

```
pipelines:
  default:
    - step:
        name: Build & Deploy Test App
        deployment: Test
        trigger: manual
        script:
          - **build**
          - **deploy**
    - step:
        name: Build & Deploy Production App
        deployment: Production
        trigger: manual
        script:
          - **build**
          - **deploy**
```

Please let me know if I'm missing something.

Thanks in advance


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

This is a bug, we have a bug report in our issue tracker here:

* <https://jira.atlassian.com/browse/BCLOUD-22402>

You can add yourself as a watcher (by selecting the **Start watching this issue** link in the bug report) if you'd like to get notified via email of any updates. You can also select the link **This affects my team** to indicate you are affected by this issue.

Our development team will post an update on that bug report when this is fixed. Please note that we don't provide ETAs and bug fixing is implemented as per our policy [here](https://confluence.atlassian.com/support/atlassian-cloud-bug-fix-policy-206865884.html).

In the meantime, you can select the build number of the build that deployed to Test (from the Deployments page) to open it, and on the build's page, you should see an option to **Deploy** to Production.

Please feel free to reach out if you have any questions.

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
License expired after upgrade
Asked by Mahmoud J:

Hi,

We have BitBucket Server 5.5.5 installed in our lab environment for testing, it has an evaluation license which allows 5 users for free without expiration.

When attempting to upgrade to any of the 8.0 versions, even the ones below 8.14, the license gets expired and gets transformed into "**Bitbucket (Data Center): Evaluation** " rather than "**Bitbucket (Server): Evaluation**".

We are just using BitBucket in a testing lab environment to simulate a customer's environment, and want to upgrade to v8.9.7 for the same purpose while keeping our existing license, and not really interested in the Data Center license.

How can we upgrade without license getting transformed to "Data Center"?


Answers:
author: Aron Gombas _Midori_
body: The Server platform is being retired (EOS), and in particular for Bitbucket, 8.14 was the last release available for Server!

Newer versions are Data Center only, as suggested by the download list:

![Bitbucket-Server-Download-Archives-Atlassian.png](https://community.atlassian.com/t5/image/serverpage/image-id/300937iE114DBDFA7C0BF88/image-size/large?v=v2&px=999 "Bitbucket-Server-Download-Archives-Atlassian.png")

comments: author: Mahmoud J
body: I already tried installing v8.9.7, but the license gets transformed to Data Center.

Tried the Docker container and standalone on Linux.


Tags: bitbucket-server

server
How to fix indexing error for deleted repository
Asked by Timothy Harris:

I am seeing the following errors in the logs. This repo has been deleted and should not be indexed. How to I get rid of the error?

```
Indexing - Failed for repository TES/domain-model-tes (id: 1147) with error: There is no repository with ID ds/0/h/a85f9d42903c2438f8bc/r/1147
```


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

When you deleted the repository, did you delete it from Bitbucket, or do you just mean you deleted it from git?


Tags: bitbucket-server

server
metadata-assistant
Asked by Paul Clarke:

While using Bitbucket today I had a request to allow a new app "metadata-assistant". I cannot find any information on this plugin. Does anyone know where it comes from? Is it safe?


Answers:
author: Ben
body: Hi Paul,

Metadata Assistant is an Atlassian-developed connect application which tracks information about metadata in your repositories, for example: how long PRs take to merge. It has recently had it's scopes changed, which means all users have to approve its use. It's nothing malicious, but if you don't approve it the iframe which shows the metadata cannot render when you are in the PR view.

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud