youngmon/atlassian-qna huggingface dataset:
Ability to prevent closing an issue if all linked "is blocked by" issues are not closed
Asked by Mohsin Khan:

I have a main user story linked to few tasks by 'is blocked by' condition. My requirement is that I do not want to allow users to close the main story until all 'is blocked by' issues are not closed. I know there is a ticket [JRASERVER-43369](https://jira.atlassian.com/browse/JRASERVER-43369)that is raised but not in release till now. Is there any way this can be achieved by using JIRA automation?


Answers:
author: Jack Brickey
body: Hi [@Mohsin Khan](/t5/user/viewprofilepage/user-id/4900662) ,

First are you on Server or Cloud? You show a Server open suggestion so maybe server? In any event you will need an addon to accomplish this. While something like Scriptrunner would allow preventing a transition Automation for Jira (built into cloud), works ++after the fact++. So with Automation you could reopen an issue if the linked blocking issues are not closed. Unsure if that method would work for you.


author: Nic Brough -Adaptavist-
body: Automation is for making changes to issues, it's not for validating transitions.

You'll need to find or write a condition or validator to do this. Have a look in the marketplace for things that provide conditions and validators.
Jira - Setting 'Reporter' of automated task not working with 'Customer' user accounts
Asked by Zam Stuart:

Hi Atlassian Community,

I have set up a straightforward automated user request which runs every month in Jira Service Managment.

I would like to set the 'Reporter' field to a specific customer via the field criteria in the automation settings, screenshot below. However, when I do this the customer does not seem to get any notification when the task is created or receive the 'reply to customer' messages sent directly from the ticket.

If the user creates a request through the portal they get the notifications as expected so their account is set up and working correctly. I have also tested myself (an agent) as the reporter and I get a notification when the rule is run, it's just the customer that doesn't seem to be connected to the request as expected.

I am wondering if there is some setting that I am missing to link the customer to the automation rule so that they receive the notification when created and can access it through the portal.

Hope you can help,

Thanks,

Zam

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


Answers:
author: Mikael Sandberg
body: Are you setting the request type field on the task? If that field is not set the issue will not be visible on the portal.

comments: author: Zam Stuart
body: Hi Mikael,

No, I haven't created a 'Request Type' for this task so that sounds like the missing piece of the puzzle.

I will try that and see how I get on.

Thanks for your expertise.

Zam


author: Zam Stuart
body: Hi [@Mikael Sandberg](/t5/user/viewprofilepage/user-id/853579)

I have added a 'Request Type' for this automated task of 'Business as Usual'.

However, when I try to set the 'Request Type' in the automation options I get the below message.

![request type option.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/205178i28DB77E113E71478/image-size/large?v=v2&px=999 "request type option.PNG")

![request type error.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/205176i9C32F5A05EB04C0C/image-size/large?v=v2&px=999 "request type error.PNG")

I have had a play around with different settings and read up on some articles on the knowledgebase but I can't see what I am missing.

Can you fill in the gap for me? where am I going wrong?

Thanks,

Zam


author: Mikael Sandberg
body: You cannot set the request type using the edit issue action, you have to use the Edit request type action in order to do it.

![Screen Shot 2022-07-08 at 8.39.55 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/205252iB87567E69020B6AD/image-size/large?v=v2&px=999 "Screen Shot 2022-07-08 at 8.39.55 AM.png")
we want get an email in case issue not not been assigned for 6 hours post its creation
Asked by shashi budidha:

we need an automation rule for the below requirement

we want to get an email in case the issue has not been assigned for 6 hours post its creation


Answers:
author: Mark Segall
body: Hi [@shashi budidha](/t5/user/viewprofilepage/user-id/4791653) - Are you on Jira Cloud? If so, you could do this:

* TRIGGER: Scheduled Every 15 minutes with the following JQL  
  created \>= -6h AND assignee IS EMPTY AND (labels NOT IN ("alreadyChecked") OR labels is EMPTY
* ACTION: Send Email
* ACTION: Edit Issue - Add label alreadyChecked

Note - I'm assuming you don't want to keep sending email every 15 minutes until assigned. If you are ok with spamming, you could remove the labels clause from the JQL and the edit issue action.
How to automatically create ticket from slack message (alerts received from monitoring tools)
Asked by somu:

Requirement is JIRA to create a ticket automatically and assign it when a \*high priority\* alert is received in slack message.


Answers:
author: Yvan Martin
body: Hi there,  

Developer from Automation here.  

At this time Automation provided by Atlassian for Jira does not currently support triggering events from slack, currently it's only limited to messaging slack based on an issue event. This is something we are hoping to implement in the future: <https://codebarrel.atlassian.net/browse/AUT-1336>  

Depending on the slack APIs you may be able to have slack trigger a custom webhook configured within Automation, but that's only if they provide that ability on their side otherwise you'll have to wait until we get to that further slack integration feature.  

Cheers.


Tags: integration

jira-cloud

slack
Update Service Desk ticket when linked Jira issue is transitioned
Asked by Maliha Khan:

**Goal:**When a Jira ticket in the DEV project is transitioned, I want the linked Jira Service Desk ticket to transition from Open \> In Progress \> Done as well.

I have a legacy automation set up for this already that used to work before but it stopped working at some point. So instead of troubleshooting that, I thought maybe I'd take this opportunity to move the automation to the new UI/UX.

However, when creating a new rule, I don't see a way to set a trigger for "if a linked issue is transitioned". Anyone have any ideas on how to do this?


Answers:
author: Alex Koxaras _Relational_
body: Hi [@Maliha Khan](/t5/user/viewprofilepage/user-id/3318924)

You don't have to search for "if a linked issue is transitioned". You could use something like the following image, although currently I don't have the time to test it:

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

However the logic is simple:

* Check when an issue transitions to a status
* Check if that issue is of a certain issue type
* Add a branch rule (you may choose all link types, or only those you want)
* Add a condition that the above issue is located in the service desk project of your choice
* Transition the issue to done as well

comments: author: Steven Schouppe
body: Hi [@Maliha Khan](/t5/user/viewprofilepage/user-id/3318924)

I confirm we use the same logic as explained by [@Alex Koxaras _Relational_](/t5/user/viewprofilepage/user-id/4150197) .

Cheers,  
Steven


author: Darryl Lee
body: Hi Maliha --

I think you need to flip your logic.

The trigger would be on whether a ticket in ANY project is transitioned to In Progress or Done. You would then need to check if it is in the DEV project. If so then you can select a Branch of Linked Issues, and if the project for the linked issue is your JSD project, transition it to the very handy option of **Destination status: Copy from trigger issue.**

It'll look something like this:

![Screen Shot 2022-06-10 at 12.55.11 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/201440i4EB23C795474153C/image-size/large?v=v2&px=999 "Screen Shot 2022-06-10 at 12.55.11 AM.png")

Let us know if you run into any issues.
Unable to login Bitbucket - We couldn?t log you in
Asked by Oscar Domingo:

Hi Atlassian community,

After I logged into Bitbucket I got this message:

"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. "

Tried with several browsers and operating systems, with no luck, could you advise?

Thanks!

Oscar.


Answers:
author: Patrik S
body: Hello [@Oscar Domingo Ramos](/t5/user/viewprofilepage/user-id/5467005) , and welcome to the Community!

Checking internally I see your account was flagged as Inactive due to along period with no activity.

I went ahead and set your account to active again, so you should be able to login as usual.

In case you are still facing any issues to login, let us know so we can assist you further :)

Thank you, [@Oscar Domingo Ramos](/t5/user/viewprofilepage/user-id/5467005) !

Patrik S


Tags: bitbucket-cloud

cloud
How to authentication github copilot with Azure AD?
Asked by Nitish Kumar Mehta:

How to authentication github copilot with Azure AD?


Answers:
author: Noah - Devsamurai
body: Hi [@Nitish Kumar Mehta](/t5/user/viewprofilepage/user-id/5466952)  

To authenticate GitHub Copilot with Azure AD, you can follow these steps:

1. Register an Application in Azure AD:  
- Sign in to the Azure portal (<https://portal.azure.com>).  
- Navigate to Azure Active Directory.  
- Go to "App registrations" and click on "New registration".  
- Enter a name for your application and specify the supported account types.  
- After registration, note down the Application (client) ID and Tenant ID.

2. Configure Authentication Settings:  
- In the Azure portal, go to "Authentication" under the application settings.  
- Add a new platform and select "Web".  
- Enter the redirect URI (e.g., <https://localhost:3000/callback>) for your application.  
- Save the configuration.

3. Grant API Permissions:  
- Go to "API permissions" under the application settings.  
- Click on "Add a permission" and select the required permissions.  
- For GitHub Copilot, you may need permissions related to accessing repositories or other resources.

4. Configure GitHub Copilot:  
- Open GitHub Copilot in your IDE.  
- Go to settings or preferences and find the authentication section.  
- Choose the option to authenticate with Azure AD.  
- Enter the Application ID, Tenant ID, and any other required credentials (such as client secret if applicable).  
- Save the configuration.

5. Authenticate:  
- Once configured, GitHub Copilot will prompt you to authenticate with Azure AD.  
- Follow the authentication flow, which may include signing in with your Azure AD credentials and granting permissions to the application.  
- After successful authentication, GitHub Copilot will be authenticated with Azure AD, and you can start using it with your repositories.

Hope this can help.


Tags: unknown-hosting-type
I want to know list of unlicenced users on BitBucket
Asked by Rajat Roy:

In our Bitbucket Data Centre we want to find out a list of users who have gone unlicensed because of not logging or inactivity .

I want to know if there is a way get the details of all those users so that we can have proper governance in place .


Answers:
author: John Lawlor
body: ```
#!/bin/bash

BUSER=$1
BPASSWD=$2
BITBUCKET_URL=https://bitbucket.company.com

if [ $# -ne 2 ]; then
echo "Usage: $0 [Bitbucket users] [Bitbucket password]"
exit 1
fi

curl -s -u "$BUSER:$BPASSWD" -X GET "$BITBUCKET_URL/rest/api/1.0/users?permission=LICENSED_USER&limit=2000" | jq > /tmp/users

grep displayName /tmp/users | cut -d ":" -f 2 | sed -e 's/"//' | sed -e 's/",//'

```

This script requires **jq** which you can install with your package manager:

```
sudo apt install jq

sudo yum install jq
```


author: Rajat Roy
body: Also is there a way to figure out how many users have generated tokens for their accounts ?

Suppose a user doesnt login but is using his token in jobs , and if we remove him , his token can get invalid .

So we want to get this details as well .


author: Nikola Perisic
body: Hello [@Rajat Roy](/t5/user/viewprofilepage/user-id/5248140)

This will help you out: <https://stackoverflow.com/questions/49616922/in-bitbucket-api-how-can-i-get-a-list-of-all-licensed-users>

Look for the answer from Marcelo. And also the comment from dave right bellow Marcelo's answer where it says that the mentioned code snippet from the page also includes the unlicensed users.

comments: author: Rajat Roy
body: This article doesn't give list of users who have unlicensed attribute tagged .


Tags: bitbucket-data-center

data-center
Error: Backend initialization required, please run "terraform init"
Asked by Prateek Tripathi:

Hi all,

I keep getting following error when running terraform apply:  

? Error: Backend initialization required, please run "terraform init"  
4
?  
5
? Reason: Initial configuration of the requested backend "s3"  
6
?  
7
? The "backend" is the interface that Terraform uses to store state,  
8
? perform operations, etc. If this message is showing up, it means that the  
9
? Terraform configuration you're using is using a custom configuration for  
10
? the Terraform backend.  
11
?  
12
? Changes to backend configurations require reinitialization. This allows  
13
? Terraform to set up the new configuration, copy existing state, etc. Please  
14
? run  
15
? "terraform init" with either the "-reconfigure" or "-migrate-state" flags  
16
? to  
17
? use the current configuration.  
18
?  
19
? If the change reason above is incorrect, please verify your configuration  
20
? hasn't changed and try again. At this point, no changes to your existing  
21
? configuration or state have been made.  

The terraform init and terraform plan executes successfully with the pipeline. Also, there is absolutely no error when running terraform apply locally, issue only occurs when I perform ci/cd with bitbucket pipeline and it reaches to the terraform apply part.  
It's a new s3 bucket that I am using as backend. there is no existing object in it.  
I've already tried "-reconfigure" and "-migrate-state" but it still is a no go.  
Looking for an urgent suggestions to fix this.


Answers:
author: Brant Schroeder
body: [@Prateek Tripathi](/t5/user/viewprofilepage/user-id/5466836) Welcome to the Atlassian community

I think this should be able to help you out <https://stackoverflow.com/questions/68985429/backend-initialization-required-please-run-terraform-init>


Tags: aws

bitbucket-cloud

cloud

s3

terraform
dotnet jb inspectcode... runs locally on windows, but fails in bitbucket pipeline linter
Asked by Alex Bondarev:

I have 'dotnet jb inspectcode' task in bb pipeline which fails with warnings but without error , same task runs file locally on windows from command line..

all warnings (same warnings locally, but html report was created) are about possible nulls and not signed assembly  
Warning: [MsBuild] /opt/atlassian/pipelines/agent/build/BiscomAwsKmsHelper/WinCred/ModelActions.cs (156,16)->(156,16) CS8603: Possible null reference return.  
39
Warning: [MsBuild] CSC (0,0)->(0,0) CS8002: Referenced assembly 'Meziantou.Framework.Win32.CredentialManager, Version=1.6.0.0, Culture=neutral, PublicKeyToken=null' does not have a strong name.  
40  
41  
--------  
what could be the problem in bitbucket pipeline?


Answers:
author: Patrik S
body: Hello [@Alex Bondarev](/t5/user/viewprofilepage/user-id/3165372) ,

thank you for reaching out to the Community!

The reason why you are getting a different output when running locally compared with pipelines may be because the environment settingsare different across both of them, such as the dotnet core version, dependencies you have installed, and the operating system.

For us to better understand the issue, I would like to ask you a few questions:

* Are you running this build in atlassian infrastructure or in a self-hosted runner ?
* If it's a self-hosted runner, could you confirm if it's a [Linux Docker runner](https://support.atlassian.com/bitbucket-cloud/docs/set-up-and-use-runners-for-linux/) (runs in a docker container) or a [Windows runner](https://support.atlassian.com/bitbucket-cloud/docs/set-up-runners-for-windows/) (runs natively directly in powershell) ?
* In order to reproduce the environment as close as the pipelines, could you try to run your build locally following the instructions of [Troubleshoot failed Bitbucket Pipelines locally with Docker](https://confluence.atlassian.com/bbkb/troubleshoot-failed-bitbucket-pipelines-locally-with-docker-1318882094.html) and check if the same error occurs ? This can help to identify if the issue is with the image/dependencies you are currently using in pipelines, allowing you to debug the error locally, and once you've got the command working well with the correct combination of images/dependencies you can then update your `bitbucket-pipelines.yml` to match

Thank you, [@Alex Bondarev](/t5/user/viewprofilepage/user-id/3165372) .

Patrik S

comments: author: Alex Bondarev
body: pipeline runs in bitbucket cloud, build is fine

pipeline yml file starts with - i understand that this is linux image

\`\`\`  
image: mcr.microsoft.com/dotnet/sdk:8.0  
\`\`\`  
the failing line is the last in here:  
\`\`\`  
- dotnet new tool-manifest  
- dotnet tool install JetBrains.ReSharper.GlobalTools  
- dotnet tool restore  
- dotnet jb inspectcode ${SOLUTION_NAME}.sln -f=html --include="\*\*/\*.cs" -o="${REPORTS_PATH}/jb-${BITBUCKET_BUILD_NUMBER}.html"  
\`\`\`  
when i convert this script to bat file to run locally on windows - it runs fine


Tags: bitbucket-cloud

cloud
Shoud we integrate BItbucket Clould / data center to JIRA software Sever ?
Asked by Meet Darji:

Dear Community leaders,

We are planning to buy a bitbucket could or data center license.

we have Jira, Confluence \& Fisheye Crucible as server licenses in our intranet network. so which bitbucket license is preferable for us ( cloud or data center)? We also want to integrate our other Atlassian products (Jira \& Confluence) with Bitbucket.


Answers:
author: Sebastian Krzewi?ski
body: Hi [@Meet Darji](/t5/user/viewprofilepage/user-id/5081612)

The answer is: "It depend" ;)

Both bitbucket versions (cloud or dc) you will be able to integrate with your tools.

Example questions to consider: Question is how looks your company policies regarding storing data outside your infra? How looks policy about granting access to tool? Users should be synced from external user directory (if yes you need to have additional Atlassian Access)?

You need to answer above questions, make a list of pros and cons and then make a decision.

comments: author: Meet Darji
body: Hi [@Sebastian Krzewi?ski](/t5/user/viewprofilepage/user-id/1561725)

Thanks for the quick response. I got your point but could you please explain that additional Additional Atlassian Access you discussed earlier?


author: Sebastian Krzewi?ski
body: [@Meet Darji](/t5/user/viewprofilepage/user-id/5081612) if you want to connect your cloud instance with external user db you need to use Atlassian access - <https://www.atlassian.com/software/access>

Regards,

Seba


author: Meet Darji
body: Hi Seba,

I have to explore this module. This seems pretty cool about security.

Thank you so much for answering my query.


Tags: bitbucket-cloud

bitbucket-data-center

cloud

jira-server
Cannot generate an "Access tokens" or "HTTP access tokens".
Asked by Andres Rudmik:

I have following directions on

<https://support.atlassian.com/bitbucket-cloud/docs/create-a-repository-access-token/>

if says  

1. At [bitbucket.org](http://bitbucket.org/), navigate to the target repository for the Access Token. This repository is the only one that the Repository Access Token can access.

2. On the sidebar, select **Repository Settings**.

3. On the sidebar, under **Security** , select **Access tokens**.

4. Select **Create Repository Access Token**.

I do not see steps 2,3, 4

Any help would be appreciated


Answers:
author: Syahrul
body: G'day, [@Andres Rudmik](/t5/user/viewprofilepage/user-id/3633808)

If you can't view the Repository settings options in the sidebar, it is because you don't have administrative permission for the repository.

I recommend contacting your workspace or repository administrator to grant you the required permission or generate a token.

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
sftp-deploy - Avoid rename existing files
Asked by Thomas Kiesl:

Hello all, in case that the same file already exists on the destination system is overrides it. Is there a way to avoid overriding or better to automatically rename the file. The existing file on the destination system should stay untouched.


Answers:
author: Patrik S
body: Hello [@Thomas Kiesl](/t5/user/viewprofilepage/user-id/4649861) ,

thank you for reaching out to the Community!

The [STFP tool](https://manpages.ubuntu.com/manpages/trusty/en/man1/sftp.1.html) will simply upload your files and overwrite any existing file with the same name in the destination. Unfortunately, the sftp tool itself does not currently provide any option/flag to keep a copy of the replaced files.

If you are looking to have a backup of the existing files prior to replacing them, or if you want to ignore the transfer of existing files in the remote end, I would suggest using the [rsync pipe](https://bitbucket.org/product/features/pipelines/integrations?search=rsync&p=atlassian/rsync-deploy) instead.

[Rsync](https://manpages.ubuntu.com/manpages/trusty/en/man1/rsync.1.html) will provide you with flags where you can achieve the behavior you are looking for:

* [Backup existing files before replacing them](https://serverfault.com/a/853218)
* [Ignore existing files](https://unix.stackexchange.com/questions/67539/how-to-rsync-only-new-files)

For those flags to be taken into account while using the [rsync pipe](https://bitbucket.org/product/features/pipelines/integrations?search=rsync&p=atlassian/rsync-deploy) you will need to provide them as part of the *EXTRA_ARGS*variable in the pipe's definition.

You can explore all the available flags for rsync on its manual page below :

* [Rsync man](https://manpages.ubuntu.com/manpages/trusty/en/man1/rsync.1.html)

Hope that helps! Should you have any questions, feel free to ask.

Thank you, [@Thomas Kiesl](/t5/user/viewprofilepage/user-id/4649861) !

Patrik S


Tags: bitbucket-cloud

cloud

sftp
How can we do the setup in local system for bitbucket like jira?
Asked by d.b.kumar.chauhan:

Hi,  

I tried to setup in my local system for bitbucket like jira. But I did not find anything related to bitbucket. Can anyone help on the same.


Answers:
author: Nikola Perisic
body: Hello [@d.b.kumar.chauhan](/t5/user/viewprofilepage/user-id/5350545)

You can refer to this link: <https://bitbucket.org/product/download-journey> . As I see that you have added the data center tags, this link is perfect for you. I also believe that you are using your own environment, since there is an option to choose your own infrastructure.

comments: author: d.b.kumar.chauhan
body: Hi [@Nikola Perisic](/t5/user/viewprofilepage/user-id/5166624) ,  

Thanks for this. But when I downloaded the atlassian-bitbucket-8.19.0 there is Linux operator file. But I want to install this in my windows laptop. So can you please help me how can we configure the same for windows.


author: Nikola Perisic
body: Hi [@d.b.kumar.chauhan](/t5/user/viewprofilepage/user-id/5350545)

From the options, try downloading the ZIP archive. If this is not working, download virtual box and install ubuntu on it, then download bitbucket for linux.


Tags: bitbucket-data-center

data-center