youngmon/atlassian-qna huggingface dataset:
What "Teams" in JIRA is referring to
Asked by Muhammad Ali Khan:

I am currently using Microsoft System Center Service Manager(GridPro) and we have Support Groups for assigning tickets. I want to know which standard JIRA field can be used as Support Group and what purpose "Teams" field is used for.


Answers:
author: Ste Wright
body: Hi [@Muhammad Ali Khan](/t5/user/viewprofilepage/user-id/5460324)

Is Support Group a team of support engineers?

If yes, you could use Team for this. Or, you could group users into actual user [Groups](https://support.atlassian.com/user-management/docs/manage-groups/) - and "assign" tickets to a Group using a custom "Group Picker (single Group)" field.

See how to create a custom field on this page: <https://support.atlassian.com/jira-cloud-administration/docs/create-a-custom-field/>

Ste


Tags: cloud

jira-service-management

jira-service-management-cloud
How do you specify longDateTime and a specific timezone for created date/time?
Asked by Ashley:

I have an automation rule that is going to send an email and share the time a ticket is created. I would like to use the format of longDateTime, but in the EST timezone.

I have used different versions of the code below to no avail.

{{issue.created.longDateTime.convertToTimeZone("America/New_York")}}

Does anybody know how to specify the longDateTime format in a certain timezone?


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

Changing the order works.

Please try: {{issue.created.convertToTimeZone("America/New_York").longDateTime}}

Reference: [LINK](https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/#Convert-timezone-date---:~:text=Example%20of%20%7B%7B%5Bdate%5D.convertToTimeZone(%5Btimezone%5D)%7D%7D)

Timezones: [LINK](http://joda-time.sourceforge.net/timezones.html)

comments: author: Ashley
body: Thank you so much - this is working for me!! I thought I tried that but apparently not!!


author: Kalyan Sattaluri
body: Awesome. Please consider accepting answer if helped so it benefits others. Thanks!


Tags: automation

cloud

date-time

format

jira-service-management

jira-service-management-cloud

smart-value

timezone
Previous access is missing
Asked by seelye_naomi:

Prior to the most recent changes to Jira, I had full access for removing/adding users. This role has not changed for me, however when I go to remove inactive users now, the relevant paths are no longer appearing for me. When attempting to access the admin portal, it now tells me I require access from my admin - I ++**am**++the primary admin on this site (or should be). Can anyone help regarding the process to regain my previous accesses?


Answers:
author: Ste Wright
body: Hi [@seelye_naomi](/t5/user/viewprofilepage/user-id/4902979)

Where are you trying to remove inactive users from? Is it <https://admin.atlassian.com/> ?

If this issue is still occurring, I would check...

* You are signed in using the correct email - if you have multiple Atlassian accounts
* If you still have other admin permissions - for example, can you see User Management or Billing in the Settings menu? What about Issues or System?

And, if there are other Admins, ask them to check your permissions also.

Ste


Tags: cloud

jira-service-management

jira-service-management-cloud
Email address?
Asked by Rayhan Mahamud:

Could you confirm if this email address is valid - noreply+9d0adb5ec75af92b937de7a3e955b47bfef1648cbbbb5b91e0ac3950@am.atlassian.com


Answers:
author: Jack Brickey
body: what context is the email associated with. on the surface it seems phishy but cannot say for sure. consider opening a support request.


Tags: cloud

jira-service-management

jira-service-management-cloud
401 in Bitbucket migration
Asked by Axel Feng:

I want to migrate the bitbucket server to cloud by using bitbucket clou migration assistant, and after I chose the migrate from and migrate to, clicked confirm, I got a error message:  
{"message":"Client must be authenticated to access this resource.","status-code":401}, how can I solve this?


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

This usually means that you have give the migration assistant credentials for an account that does not have access to your Bitbucket Cloud system.


Tags: bitbucket-cloud

cloud
How to enable customer to view subtasks of the ticket they reported?
Asked by Yura Hayrapetyan:

Hi folks! The customer reported a change request through portal in Jira Service Management. Our engineers added subtasks to that ticket. Now even though we added the customer as a "request participant" in the subtasks, they are unable to see the subtasks.   
Kindly help with a solution. Thanks


Answers:
author: Kate Pawlak _Appsvio_
body: Hi [@Yura Hayrapetyan](/t5/user/viewprofilepage/user-id/5035661) ,

It's not possible to present subtasks on the request details view for customer. You can add subtasks to the issue but they will be visible only from issue view (so for users who have got an access from Jira side).

As natively it's not possible, you can achieve it using app, for example developed by my team: [Feature Bundle for Jira Service Management](https://bit.ly/FeatureBundle_C). Of course, this app includes more features than presenting additional values and information on the request details view.

comments: author: Yura Hayrapetyan
body: I love your hunting strategy Kate :D thank you!


author: Mikael Sandberg
body: In order for the customer to see a requests in the portal you have to set the request type field. This field controls if the issue will be visible on the portal or not. Unfortunately you cannot create a request type that is associated with a sub-task since sub-tasks have to have a parent issue. So in your case you would have to convert the sub-tasks to an issue that is associated with a request type for the customer to see it.

comments: author: Yura Hayrapetyan
body: thanks for your reply [@Mikael Sandberg](/t5/user/viewprofilepage/user-id/853579) . As I understood from your reply basically there is no solution to make the subtasks visible in the portal. We need to convert the subtasks to issues and link them to parent issue so customer can see in the portal?


author: Mikael Sandberg
body: Correct!


author: Yura Hayrapetyan
body: thanks


author: Ste Wright
body: Hi [@Yura Hayrapetyan](/t5/user/viewprofilepage/user-id/5035661)

Whilst it's not possible to show the Sub-tasks on the portal natively, one option would be to provide information from the Sub-tasks on the main ticket using [Automation](https://support.atlassian.com/cloud-automation/docs/jira-cloud-automation/)

For example if a Sub-task is closed, add a comment confirming this to the main ticket.

What kinds of information would you like the customer to see?

Ste


Tags: cloud

jira-service-management

jira-service-management-cloud
Unable to push code into the repository
Asked by Priyadharshini Mohan:

Hi

I tried to push the code into the repository, but it gives me the below error.

please see the below commands. Kindly let me know what has to be done to resolve it immediately.

**C:\\Priya\\Priya\\RTK 725B Alarm annunciator\\Alarm Card Repo\>git remote add origin <https://bitbucket-prod.tcc.etn.com/scm/rtk/alarm_card.git>**   
**error: remote origin already exists.**

**C:\\Priya\\Priya\\RTK 725B Alarm annunciator\\Alarm Card Repo\>git push -u origin master**   
**fatal: unable to access '<https://bitbucket-prod.tcc.etn.com/scm/rtk/alarm_card.git/>': Received HTTP code 502 from proxy after CONNECT**

Thanks


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

This is what it says it is - you are trying to create a remote repo that already exists. Try just pushing to it.


Tags: bitbucket-server

server
Can't add 3rd member to project?
Asked by George:

It pops up an error message in the bottom-left saying "Issue adding new user" whenever I try to add a 3rd team member by their email address. Tried 2 different emails, made sure there aren't any spaces on the ends, and even tried switching wifi networks and devices, nothing's working.


Answers:
author: Patrik S
body: Hello [@George](/t5/user/viewprofilepage/user-id/5189203) ,

Welcome to Atlassian Community!

Could you please confirm if the users you are trying to invite already have a Bitbucket account? If they don't have a Bitbucket account yet, please ask them to create one on the following link using the same email you are trying to invite:

* [Bitbucket Signup \| Atlassian](https://id.atlassian.com/signup?application=bitbucket&continue=https%3A%2F%2Fbitbucket.org%2Faccount%2Fsignin%2F%3Fnext%3D%252F)

Once they create the Bitbucket account you can try inviting them again and let us know how it goes.

In case you have any questions, feel free to ask!

Thank you, [@George](/t5/user/viewprofilepage/user-id/5189203) !  
Patrik S


Tags: bitbucket-cloud

cloud
Permission denied when attempting to clone Repository via SSH
Asked by jace:

When attempting to clone this repo onto a Linux machine I get the following error:  

"Cloning into '/{repo_name}'...  
Permission denied (publickey).  
fatal: Could not read from remote repository.

Please make sure you have the correct access rights  
and the repository exists."

<br />

But, when I run the command "$ssh -T git@bitbucket.org", I get the following output:  

"authenticated via ssh key.

You can use git to connect to Bitbucket. Shell access is disabled"  

The ssh agent is running, the private key is added to the agent. Any help would be much appreciated, I am stuck on this and have been for several days. Thanks in advance!


Answers:
author: Daniel
body: I'm sure you have, but did you by chance try these common issues and fixes here? <https://confluence.atlassian.com/bbkb/permission-denied-publickey-302811860.html>

comments: author: jace
body: Ended up being a permissions issue, silly on my part. But this checklist was exactly what I needed. Thank you!


Tags: bitbucket-cloud

cloud

linux
Return commit hash after creating a commit using API
Asked by Jonathan Li:

The Create a commit by uploading a file endpoint doesn't return anything. I need the commit hash that it has created. Is there a workaround for this?


Answers:
author: Theodora Boudale
body: Hi [@Jonathan Li](/t5/user/viewprofilepage/user-id/5189068)!

With curl, it is possible to add the -v option, as follows:

```
curl -u BitbucketUsername:AppPassword -v https://api.bitbucket.org/2.0/repositories/workspace-id/repo/src \
-F myFile.txt=@myFile.txt
```

When the -v option is added, the output will return, among other things, a line that looks like this:

```
< location: https://api.bitbucket.org/2.0/repositories/workspace-id/repo/commit/361fbb45757afc4056a400730bd6cf6fe3e77c07
```

The last part is the commit hash of the commit created by the API call.

Kind regards,  
Theodora


author: Aron Gombas _Midori_
body: If it doesn't return it, maybe you could [get the refs from the repo](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-refs/#api-repositories-workspace-repo-slug-refs-get) right after you created the commit. Because you know to which branch you created the commit, you need the hash of the head of that branch.

(You could even get the branch itself from the REST API, but as far as I saw it won't return the hash either?!)

Anyway, it should give you an idea.


Tags: bitbucket-cloud

cloud
Does bitbucket don't provide delete repository webhook event
Asked by akashd:

I would like to know whether bitbucket provides a delete repository webhook event or not.


Answers:
author: Patrik S
body: Hello [@akashd](/t5/user/viewprofilepage/user-id/5188966) ,

Welcome to Atlassian Community!

I'm afraid that currently Bitbuclet Cloud webhooks do not offer an event specifically for **repository:deletion** - you can check the currently available events in the [Event payloads](https://support.atlassian.com/bitbucket-cloud/docs/event-payloads/) documentation. I went ahead and created a feature request to also implemented the repository:deletion, which you can find in the following link :

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

I would suggest you to add your vote there, since this helps both developers and product managers to understand the interest. Also, make sure you add yourself as a watcher in case you want to receive first-hand updates from that ticket. Please note that all features are implemented with [this policy](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) in mind.

Thank you, [@akashd](/t5/user/viewprofilepage/user-id/5188966) !  
Patrik S

comments: author: akashd
body: Hi [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) ,  
Thank you for your reply. Surely, I'll go through the feature request and add a vote.


Tags: bitbucket-cloud

cloud
Pipelines seems to execute nvm use after every step
Asked by diego:

I noticed the following message after every step in my pipeline:

    N/A: version "v18" is not yet installed

Which seemed strange because I am not using *nvm use* in any step of my pipeline. But the message seems to be from nvm.

You can reproduce this by creating an empty repository with only a .nvmrc file and a very simple bitbucket-pipelines.yml like this.

**.nvmrc**

```
18
```

**bitbucket-pipelines.yml**

```
pipelines:
  default:
    - step:
        name: Test
        script: 
          - exit 0
```

Without any other code the pipeline logs the nvm message two times!

Why? Is there any documentation that states any nvm integration into Bitbucket Pipelines?


Answers:
author: Patrik S
body: Hello [@timspiekerkoetter](/t5/user/viewprofilepage/user-id/712794) ,

Thank you for reaching out to Atlassian Community!

The **atlassian/default-image:1** , that is the image use by default if you don't specify any in your YML file, does come with **nvm**, but pipelines itself does not specify a node version.

Since you have a **.nvmrc** file in the repository, nvm will try to use the node version specified in that file, which in your example was v18. As the **atlassian/default-image:1** does not come with Node 18, nvm is throwing the error that this particular version was not found.

For further details on what is included in each version of atlassian/default-image you can refer to [Pipelines - Default build environment.](https://support.atlassian.com/bitbucket-cloud/docs/use-docker-images-as-build-environments/#Default-build-environment)

In order to get rid of that error, you can use a different docker image in your step that either does not use nvm or that contains the node version that you are specifying in the .nvmrc file, as in the example below :

```
pipelines:
  default:
    - step:
        name: Using image that contains node 18
        image: node:18.0.0
        script: 
          - exit 0
    - step:
        name: Using image that does not use nvm
        image: ubuntu:latest
        script: 
          - exit 0
```

Hope that helps! Let me know in case you have any questions.

Thank you, [@timspiekerkoetter](/t5/user/viewprofilepage/user-id/712794) !

Patrik S


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Is Reusable CI workflows coming soon feature similar to Azure DevOps templates?
Asked by Andrea Rigamonti:

Hello everyone,

while creating Bitbucket pipelines I noticed there isn't a standard syntax to define templates or reusable YAML file, or even having multiple pipeline in a single repository. Having something similar to Azure Pipelines templates would be fantastic because you could parameterized steps and call them as sort of functions.

I searched if something is planned and found this [feature](https://www.atlassian.com/wac/roadmap/cloud/reusable-ci-workflows?status=comingSoon;future&selectedProduct=bitbucket&p=ca8f751c-aa)in Bitbucket Roadmap. From the description I can't really understand if it's a template concept or something different.

Thank you!


Answers:
author: Patrik S
body: Hello [@Andrea Rigamonti](/t5/user/viewprofilepage/user-id/5188856) ,

Welcome to Atlassian Community!

Our engineering team is indeed working on enabling a very flexible and powerful config-sharing scheme for Bitbucket Pipelines, and the roadmap entry you have shared is being also tracked in the following feature request, which is already in progress:

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

I would encourage you to add your vote on that feature request and make sure to mark yourself as a watcher, so you will be notified by email whenever there's any progress on the feature implementation. Please note that all features are implemented with [this policy](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) in mind.

Thank you, [@Andrea Rigamonti](/t5/user/viewprofilepage/user-id/5188856) !  
Patrik S

comments: author: Andrea Rigamonti
body: Thanks for the reply! I think that's what we need most right now in our projects.

Hope it will come soon :)

Andrea


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Bitbucket private repo code is exposed !
Asked by Naim Bijapure:

We have deployed our code from the bitbucket pipeline to aws ec2.

recently client received an email from AWS support that the bitbucket code was being exposed.

anyone from the link can see any files like dotfiles and respective files.

the link looks like this :

<https://bitbucket.org/abcTech/%4sfasdfasdfasdfasdfadddsafasdf%7D/raw/master/apps/api/.env>

this is not a real link. but when I click the link that I received it will show all the content from the file even if you are not a Bitbucket user!

didn't understand what is happening. what could be the issue?

my guess is the link is generated from the bitbucket pipeline's artifact but how can it be accessible to anyone?


Answers:
author: Alex Koxaras _Relational_
body: Duplicate <https://community.atlassian.com/t5/Bitbucket-questions/bitbucket-private-repo-code-is-exposed/qaq-p/2322520>


Tags: bitbucket-pipelines
bitbucket private repo code is exposed !
Asked by Naim Bijapure:

We have deployed our code from the bitbucket pipeline to aws ec2.

recently client received an email from AWS support that the bitbucket code was being exposed.

anyone from the link can see any files like dotfiles and respective files.

the link looks like this :

<https://bitbucket.org/abcTech/%4sfasdfasdfasdfasdfadddsafasdf%7D/raw/master/apps/api/.env>

this is not a real link. but when I click the link that I received it will show all the content from the file even if you are not a Bitbucket user!

didn't understand what is happening. what could be the issue?

my guess is the link is generated from the bitbucket pipeline's artifact but how can it be accessible to anyone?


Answers:
author: Theodora Boudale
body: Hi [@Naim Bijapure](/t5/user/viewprofilepage/user-id/5188693),

The URL you posted here looks like it is from a file that is committed to a Bitbucket Cloud repo. If this can be accessed by anyone, then the repo must have been set to public.

If you are an admin of the repo, you can

1. Open this repo on Bitbucket Cloud website
2. Go to its **Repository settings** from the left sidebar
3. You will see a checkbox with the text **This is a private repository**. If that is indeed unchecked, you will need to check it in order to make the repository private.

If you don't have admin access to the repo, you can ask one of the admins to follow the steps I shared.

Please feel free to let me know how it goes and if you need anything further.

Kind regards,  
Theodora


author: Naim Bijapure
body: can anyone answer please ?


Tags: bitbucket-cloud

cloud
After upgrading Git, old version is displayed in bracket.
Asked by Shraddha Sudheendra:

After upgrading Git version from 2.30.0 to 2.40.0 in Bitbucket server 7.6.17, Under System information in Troubleshooting and Support tools, the older version is displayed in parenthesis. Why is this? Is something wrong? How to fix this? It was not the same when we upgraded to 2.30.0 long back.

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


Answers:
author: Aron Gombas _Midori_
body: When you execute "git --version" in the commandline with that precise path that is on the screenshot, do you see the new version printed?

I think you maybe upgraded Git, but that's available at another path.

comments: author: Shraddha Sudheendra
body: The issue has got fixed. I had to restart the bitbucket server. Thank you.


Tags: bitbucket-server

server
SSH key suddenly not working (Permission Denied)
Asked by CHEN TZEN KOK:

All these while my SSH key have been working however today when i tried to git pull it was no longer working and gave me permission denied.  

debug1: Authentications that can continue: publickey

debug1: Trying private key: /Users/chentzen02/.ssh/id_ed25519_sk

debug3: no such identity: /Users/chentzen02/.ssh/id_ed25519_sk: No such file or directory

debug1: Trying private key: /Users/chentzen02/.ssh/id_xmss

debug3: no such identity: /Users/chentzen02/.ssh/id_xmss: No such file or directory

debug1: Trying private key: /Users/chentzen02/.ssh/id_dsa

debug3: no such identity: /Users/chentzen02/.ssh/id_dsa: No such file or directory

debug2: we did not send a packet, disable method

debug1: No more authentication methods to try.

git@bitbucket.org: Permission denied (publickey).


Answers:
author: Peter Van de Voorde
body: Hi [@CHEN TZEN KOK](/t5/user/viewprofilepage/user-id/5188552)   

Welcome to the Atlassian Community.   

Could it be that you're ssh keys on your machine have been moved, deleted, or had their permission changed?  
Looking at the error messages it seems that your git is not able to find any of your public ssh keys on your local machine.  

Cheers,  
Peter


author: Theodora Boudale
body: Hi [@CHEN TZEN KOK](/t5/user/viewprofilepage/user-id/5188552) and welcome to the community!

If the SSH keys still exist in the \~/.ssh directory on your machine and nothing has changed with regards to their permissions, you can add the following to the **\~/.ssh/config** file on oyur machine

```
Host bitbucket.org
    AddKeysToAgent yes
    IdentityFile ~/.ssh/id_rsa
    IdentitiesOnly yes
```

where **id_rsa**, replace with the name of the private key, whose public key you have uploaded to Bitbucket. This assumes that the SSH key pair exists in the \~/.ssh directory of your machine.

If there is no file named **config** in your \~/.ssh directory, you can create a new file with this name and add to it the content I shared above. This will ensure that this specific SSH key will be offered when you clone/pull/push to a Bitbucket Cloud repo via SSH.

Please feel free to let us know how it goes.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
How can I manually (no e-mail invitation) add a user?
Asked by Panos Konstantinidis:

Hello,

OK this might sound like a strange question, but how do I manually add a user (no e-mail invitation)? I've been going through the settings but I cannot find how to do it.

The idea is that I want to add a user that will be used exclusively for CI/CD.

Thank you

Panos


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

You can not create a user without an email address.

There is a "cheat" I use for this sometimes - gmail (and other systems) allow you to set up distinct aliases for a mailbox, and if you use one of these, the Atlassian account system sees it as a separate email.

So, say you've got pk@gmail.com as a simple account, try inviting pk+cicd@gmail.com.

You'll get the email, so log out the Atlassian systems you're logged into now, and use the link in the invite to confirm that you want to use the new account.

comments: author: Panos Konstantinidis
body: Thank you for your prompt reply Nic.

I thought so but I hoped maybe I was missing something. Yes I will probably use the gmail trick, or maybe a temp e-mail address.

Thank you again.

Regards

Panos


author: Nic Brough -Adaptavist-
body: I would caution you against using a temporary email address - if anything goes wrong, you won't be able to recover the account, and you'll have to redo everything from scratch.


Tags: bitbucket-cloud

cloud