youngmon/atlassian-qna huggingface dataset:
Transition stories back to to-do when stories are moved out of a sprint
Asked by Rania Haddadin:

Does anyone know of an automation rule that will transition stories/tasks/defect, back to the to-do status if it's moved out of a sprint?


Answers:
author: Bhanu
body: Hi [@Rania Haddadin](/t5/user/viewprofilepage/user-id/4251567)

You can try something like this:

Trigger: Field Value Changed

Condition: Jql to check if the issue vbelongs to the openSpring (Example: Project = JIRA and sprint not in openSprints())  

Action: Transition Issue

Hope this helps!

comments: author: Rania Haddadin
body: It worked, thank you so much


author: Bill Sheboy
body: Hi [@Rania Haddadin](/t5/user/viewprofilepage/user-id/4251567)

There are two steps to building a rule like this:

1. confirm the issue was in the open / active sprint
2. confirm the issue is no longer in the open / active sprint

The first part is required to prevent updating issues which are modified in the backlog, and not in the current sprint. It may be done by either using the changelog fields to check the prior sprint values, or to initially "mark" (e.g., with a Label value) all issues in the sprint using another rule, triggered on Sprint Started...then check that "mark" before transitioning issues.

The second part may be checked with a JQL condition of sprint NOT IN openSprints().

Kind regards,  
Bill
Created labels through Jira admin are not visible to other jira users in the projects
Asked by Shasheekant Patel:

Dear Community,

I hope you all are doing well!!

I am an Jira site admin of Jira Cloud site of my organization. I have Created few labels for the automation and I have checked and implemented in few projects. Problem is that those created labels are visible to me only not for other Jira users.

I have implement an automation for -**If the labels field contains value "Subtask_Tree" then create predefined sub-tasks list for the story issue types**

I am able to use this automation in the respective projects, while the user of the respective projects are unable to find the label "Subtask_Tree"

![Automation .png](https://community.atlassian.com/t5/image/serverpage/image-id/340165iA20ACADA53D48090/image-size/large?v=v2&px=999 "Automation .png")As I know that labels have global scope, then why other team members are unable to use it.

Kindly suggest me the solution of the issue.


Answers:
author: Bill Sheboy
body: Hi [@Shasheekant Patel](/t5/user/viewprofilepage/user-id/5371875)

What is the symptom the other person is seeing that leads them to believe the label "Subtask_Tree" is not available.

Labels are shown / recommended in the field after they are first used. Has the label been used in your site yet?

Kind regards,  
Bill

comments: author: Shasheekant Patel
body: Hi [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313)

Thank you for your response. I'd like to inform you that these labels have been used in other testing projects in the same Jira instance by me (Admin).


author: Bill Sheboy
body: I recall this symptom could occur if the user account did not have create / edit issue permission...although that seems unlikely for this case.

There was an defect a few years ago for this symptom, which was fixed by Atlassian: <https://jira.atlassian.com/browse/JRACLOUD-74103>

I recommend working with your Jira Site Admin to submit a ticket to Atlassian Support for their help. When you hear back from them, please post what you learn to benefit the community. <https://support.atlassian.com/contact/#/>


author: Bill Sheboy
body: Hi [@Shasheekant Patel](/t5/user/viewprofilepage/user-id/5371875)

I am following up to learn if you checked with the Atlassian Support team for this issue.

Thanks,  
Bill


Tags: label
Set Assets Custom Field with SmartValue from Alert
Asked by Josh Rossman:

Hello,

We are attempting to find a way to auto-populate our Assets Object custom field in an issue when an alert is linked. In a more basic form, I have created an automation rule that is fired from a manual trigger. This trigger creates an Incident and populates the Summary with {{alert.message}} and Description with {{alert.description}}. We have created a custom field called "Linked Device" that is used to track Hostnames of devices involved with the Incident.

I'm attempting to use {{alert.entity}} to auto populate the Linked Device field but am struggling. Are Smart Values valid within the Asset Objects custom field?

![Capture.PNG](/t5/image/serverpage/image-id/339764iDC71B00BF25BE5C6/image-size/large?v=v2&px=999 "Capture.PNG")

This works just fine at populating the Asset Object.

name = "hostname"

This does not.

name = "{{alert.entity}}" ........... or this name = {{alert.entity}}

Ultimately, I want any alert that is linked to an incident to always attempt to add its {{alert.entity}} value to the Asset Objects field. We allow multiple Objects within the field and this seems like a possibility.

Am I missing something within Automation to accomplish this? Is there an App available that would accomplish this easier? Automation is lacking a trigger like "alert linked". That would at least allow me to run automation rules each time an alert is linked.

Thanks Everyone!


Answers:
author: Marc - Devoteam
body: Hi [@Josh Rossman](/t5/user/viewprofilepage/user-id/5519525)

What is the config of the asset field.

What are the values that you can get in a normal issue on the custom field of asset type?

comments: author: Josh Rossman
body: Marc,

I was actually able to solve this by using name = {{alert.extraProperties.entity}}.

Although my entity field within details was populated the Assets custom field would not reference it correctly. Since the entity field within Details does not show up within an alert by default you need to add it to extraProperties as well (referenced below.)

<https://jira.atlassian.com/browse/JSDCLOUD-14561>

I think this is the reason the assets field was unable to reference {{alert.entity}}.

Thanks!

Josh R.


author: Adolfo Casari
body: [@Josh Rossman](/t5/user/viewprofilepage/user-id/5519525)If name = "{{alert.entity}}" don't work (but name = "hostname" does) can only mean that {{alert.entity}} don't hold a valid Linked Device name.

How do you configure that entity property for your alerts?

comments: author: Josh Rossman
body: The entity property is sent in the payload from our monitoring tools. For example, I was able to display the hostname via {{alert.entity}} in the description of an Issue. I know that part is pulling the hostname correctly. As soon as I try to place it within the Linked Device (Asset Object) field it's always left blank.


Tags: cloud
[Solved] Lookup other issues for assigned assignee
Asked by Michael de Jonge:

I'm currently making my own Out of Office function. When a issue is assigned to someone i want automation to look for another issue called "Out of Office".

Currently my automation is giving errors in the lookup function. Can anyone help me with the right JQL code for this.

![Naamloos.png](https://community.atlassian.com/t5/image/serverpage/image-id/339360iAF5D728CACC97F9C/image-size/large?v=v2&px=999 "Naamloos.png")![Naamloos1.png](https://community.atlassian.com/t5/image/serverpage/image-id/339361i008B89EAA07E723A/image-size/large?v=v2&px=999 "Naamloos1.png")


Answers:
author: Hans Polder
body: Hi [@Michael de Jonge](/t5/user/viewprofilepage/user-id/5558147) ,

Welcome to the community!

There are two errors in your automation rule:

1. You've defined 'lookupissues.size' but it should be 'lookupIssues.size' \> it at least mattered in my test setup :)
2. You cannot use 'smart values' directly in a JQL. You need to define it as a variable first.

TIP: Use Log actions in your automation rule to see where it's failing.

Below automation works for me:

![Screenshot 2024-08-01 105427.png](https://community.atlassian.com/t5/image/serverpage/image-id/339368i8BDC0ED41ECA8C8F/image-size/large?v=v2&px=999 "Screenshot 2024-08-01 105427.png")

PS: The log actions are of course not needed once the rule is working fine, you should either leave them out, or remove them once the rule is working correctly.

comments: author: Hans Polder
body: PPS: I assume that you're either deleting the out of office tickets, or making them 'unassigned' after the person has returned from out of office \> otherwise the script will always work for any past ticket as well. Or you should add some JQL logic like 'and status != Returned' to avoid past OoO's to be activating the rule.


author: Michael de Jonge
body: Hi Hans, thanks for you clear explanation. I already fixed the assignee wich was a problem of adding "" around the {{}}.

And thanks for the capital I in lookupIssues, that also solved a problem.

Somehow i didn't need to add all the smart values and I AM able use them directly.

The working script for now:

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

Thanks again for you help!


author: Hans Polder
body: Ah, cool! I learned something new today :)

Of course, all the 'add to audit log' entries were not needed, but good to know that you actually don't need to create the variable and just add the "" to make it work!
pip install failed when try to install wheel file form download section using URL with creadentials
Asked by Appu Singh:

Details :

I want to upload and download **python wheel** files to bitbucket's repo download section.

I want it should be done either way meaning from bit bucket web interface as well as using the APIs or commands (with necessary credential)

Key points

I am able to upload / download using bit bucket web interface.

i have added app password

I am able to upload using POST method (using my username , app password)

I was trying to install that wheel package using pip command as below

*pip install --user --extra-index-url <https://myusername:mypass@bitbucket.org/owner-username/repo-slug/downloads/my_package-0.1.0-py3-none-any.whl>*

Bit getting below error

++ERROR: You must give at least one requirement to install (see "pip help install")++

I also tried with the get request it says

++HTTP request sent, awaiting response... 401 Unauthorized++

So my question is i don't have download access using the API/pip as able to able so it shoule be there

My app password having repository read and write permission.

Please sugget what could be the solution . Thanks


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

The **Downloads** section of a Bitbucket repository is not a package registry, so I'm not sure if it's possible to to download a file from there with the **pip install** command.

You can download the file using our API, but the credentials need to be provided separately and not as part of the URL. An example of such an API call with curl is the following:

```
curl -s -L -O -u username:app_password https://api.bitbucket.org/2.0/repositories/workspace-id/repo-slug/downloads/my_package-0.1.0-py3-none-any.whl
```

where **username** , **app_password** , **workspace-id** and **repo-slug** replace with your own values. Also, replace **my_package-0.1.0-py3-none-any.whl** if the name of your package is different.

Reference:

* <https://confluence.atlassian.com/bbkb/download-a-file-from-the-downloads-section-of-a-repository-1252006688.html>

Does this work for you?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

download

pip
Using Sourcetree, Unable to Push to Remote Repo
Asked by swelleye-brent:

Has anyone come across this error?

*git --no-optional-locks -c color.branch=false -c color.diff=false -c color.status=false -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags origin refs/heads/staging:refs/heads/staging*   
*Pushing to <https://bitbucket.org/xx/xx.git>*   
*POST git-receive-pack (chunked)*   
*error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500*   
*fatal: the remote end hung up unexpectedly*   
*fatal: the remote end hung up unexpectedly*   
*Everything up-to-date*   
*Completed with errors, see above*   

I'm able to pull from remote, but unable to push to it.  
I also created a new branch and test commit, unable to push that as well.  

I'd greatly appreciate any help and suggestions, thank you!


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

How large are the files you are trying to push? I've seen this error occurs mainly with large pushes.

You can try increasing the size of the buffer used to POST data by executing the following command on a terminal application:

```
git config --global http.postBuffer 157286400
```

Then, attempt to push again. This will increase the size of the buffer to 150 MB.

Are you able to push then?

Kind regards,  
Theodora

comments: author: swelleye-brent
body: Hi Theodora, many thanks for your reply and help. That indeed fixed the issue!  

It's strange because we've never had a limit on file size. We did recently upgrade our AWS instances, so perhaps the new instances had a limit.  

Anyway, thanks again for your help.


author: Theodora Boudale
body: Hi,

Thank you for the update!

I believe the default size of that buffer in Git is 1 MB, which may not be enough for larger pushes.

It's good to hear that this worked, please feel free to reach out if you ever need anything else!

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

sourcetree
How can i remove a reviewer with status
Asked by Priya Iyer:

I have a reviewer who has requested changes to a Pull request.

i would like to dismiss this review and create a new one as the person is replaced.

How can i achieve this?

Currently, i get an error message" Cannot remove reviewer with status"


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

There is a bug preventing the removal of reviewers who have requested changed in the PR:

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

The only way this reviewer can be removed is if they remove the 'requested changes' status. The reviewer will need to:

1. Log in to <https://bitbucket.org/>
2. Open the PR on Bitbucket's website
3. Select the **Changes requested** option in the PR to remove the status:  

   ![Screenshot 2024-09-20 at 12.09.41.png](https://community.atlassian.com/t5/image/serverpage/image-id/348366i2D69B2EFD88183E5/image-size/large?v=v2&px=999 "Screenshot 2024-09-20 at 12.09.41.png")

You will then be able to remove them from the PR's reviewers.

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

Kind regards,  
Theodora

comments: author: Priya Iyer
body: Thanks, Theodora for the response.

What if we are in a situation that reviewer had requested changes and say quit the job?

How do we go about this situation?

For Jira, we do get a option of rejecting a Peer review and one will assign a new reviewer mentioning it in audit trail that the earlier reviewer no longer works.

Is there any Super user or Admin privileges that can help?


author: Theodora Boudale
body: Hi Priya,

I'm afraid that it is not possible to remove the status on behalf of another user even for admins. There isn't a super user role that can do that.

Until the bug is fixed, the options are:

* The reviewer removes the status themselves.  

* For someone that quits the job, you can work with your IT department to get access to the user's email address, so you can reset the password for their Bitbucket account, log in to Bitbucket with the user's credentials and remove the status.  

* Decline the PR and create a new one. Please note that any comments, reviews, approvals made on the declined PR won't get transferred to the new one.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
I can't receive Bitbucket invitation emails with my gmail account.
Asked by P?mela Machado:

Hi there. I've started a new project and the team leader is trying to add me into the teams' bitbucket workspace so I can get access to the repositories but I haven't received any of the invitations so far.

He has sent and resent them over 5 times in the last 48 hours but to no avail.

What can we do? Could anyone help?


Answers:
author: Patrik S
body: Hello [@P?mela Machado](/t5/user/viewprofilepage/user-id/5595721) ,

and welcome to the Community!

Checking internally I see that the bitbucket account associated with the email you posted this question from is already a member of a workspace, so hopefully the email eventually arrived. I also don't see any emails being bounced on our end, which usually suggest the email was delivered but may have been ended up on Spam/Junk folder on mistake.

However, if the invitation is for a different account/email, we kindly ask you to post a comment here while logged in with the affected account email, so we can check our logs further.

Thank you, [@P?mela Machado](/t5/user/viewprofilepage/user-id/5595721) !

Patrik S


Tags: bitbucket-cloud

cloud

invite
We couldn?t log you in
Asked by Ka:

Good day,

as instructed posting a new question for the problem of not being able to get into Bitbucket. I can login to the main dashboard and click on some services like Trello, but Bitbucket gives me an error.

Yes, it had been ages since I didn't login.

Thanks and no emergency but would love to get my account working again.


Answers:
author: Patrik S
body: Hey [@Ka](/t5/user/viewprofilepage/user-id/5595715) ,

welcome to Community!

Your Bitbucket Cloud account was put into an inactive state due to the long period with no login/activity.

I went ahead and re-enabled the account, so you can log in as usual :)

Let us know in case you are still having trouble signing in.

Thank you, [@Ka](/t5/user/viewprofilepage/user-id/5595715) !

Patrik S


author: vikram
body: Hi [@Ka](/t5/user/viewprofilepage/user-id/5595715)

Welcome to Atlassian Community.

Yes, your understanding is right, if you don't login to Bitbucket for long time, the account will be deactivated and you have to wait till it is activated from Atlassian people. --- Good luck.

Vikram P


Tags: bitbucket-cloud

cloud
unwanted components adding in PR
Asked by Rashmitha Ramaraju:

unwanted components adding in PR


Answers:
author: Patrik S
body: Hey [@Rashmitha Ramaraju](/t5/user/viewprofilepage/user-id/5591681) ,

and welcome to the Community!

I see you have opened an internal support ticket for this issue, so I would suggest focusing on the support ticket to avoid any confusions that may arise from discussing the same issue in multiple places.

Once the ticket is resolved, feel free to share the solution here in Community to help other users that may come across the same issue

Thank you, [@Rashmitha Ramaraju](/t5/user/viewprofilepage/user-id/5591681) ! :)


Tags: bitbucket-cloud

cloud
Can we have a 'Default File Viewer' option in commits tab as well, to view the changes?
Asked by Dhanush P S:

We have installed 'notebook viewer' to get the 'Default File Viewer' option in repository to view .ipynb notebooks, as initially we were seeing the .ipynb file in .json format. We installed notebook viewer to address this issue. Now we can see the .ipynb file in proper format, but in commits tab we are still seeing the file in json format only, and we dont have 'Default File Viewer' option in commits tab.   
Is there a option or a way to get the 'Default File Viewer' in commits tab as well?


Answers:
author: Patrik S
body: Hey [@Dhanush P S](/t5/user/viewprofilepage/user-id/5595453) ,

and welcome to the Community!

Unfortunately, the selection of different viewers is only currently available in the Source tab.

The Commits tab will show the raw diff of changes introduced by that commit. It's the same as executing a ***git diff*** command locally, so it does not render the content of the file based on it's format, but rather prints the raw plain text content.

Thank you, [@Dhanush P S](/t5/user/viewprofilepage/user-id/5595453) !

Patrik S


Tags: bitbucket-cloud

cloud
Port 22 timing out
Asked by kwesiaryee:

Port 22 has been disabled on my vps for port 1035. Due to this i just can't upload my repository via pipelines to my server. I can however do an ssh from bitbucket to setup ssh connection via IP:1035, but anytime i do with pipeline even with IP:1035, it return with port 22 timeout.

How can i solve this?


Answers:
author: Patrik S
body: Hey [@kwesiaryee](/t5/user/viewprofilepage/user-id/3242517) ,

Looks like you have posted similar questions before:

* [My VPS is not allowing port 22](https://community.atlassian.com/t5/Bitbucket-questions/My-VPS-is-not-allowing-port-22/qaq-p/2814024)

I have added a suggestion that in that previous questions that if you're making use of the [atlassian/scp-deploy](https://bitbucket.org/product/features/pipelines/integrations?search=scp-&p=atlassian/scp-deploy) pipe to make your deployment, you may have it not correctly setup for the custom port.

To define a custom part when using the [atlassian/scp-deploy](https://bitbucket.org/product/features/pipelines/integrations?search=scp-&p=atlassian/scp-deploy) pipe, you'll need to set the EXTRA_ARGS variable, as in the following example:

```
script:
  - pipe: atlassian/scp-deploy:1.5.1
    variables:
      USER: 'ec2-user'
      SERVER: '127.0.0.1'
      REMOTE_PATH: '/var/www/build/'
      LOCAL_PATH: 'build/'
      DEBUG: 'true'
      EXTRA_ARGS: ["-P", "1035"]
```

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


Tags: bitbucket-cloud

cloud
Problem with Two-factor authentication
Asked by Doris Pusch:

I have two-factor authentication set up.

Now I get an error message every time I enter the code and I can no longer access my account.

Please reset two-factor-authentication for my account.


Answers:
author: Patrik S
body: Hello [@Doris Pusch](/t5/user/viewprofilepage/user-id/5595351) ,

and welcome to the Community!

You should be able to start the reset of your two-factor authentication through the login screen by selecting the option **Forgot Code**.

It's important to note that you can enable 2FA at your atlassian account level, and also at the bitbucket account, so you may have more than one layer of 2FA enabled. For instructions on how to identify which is the layer and steps to reset it, the following article might be useful:

* [How to Disable/Reset 2FA on Bitbucket Cloud and Atlassian Account](https://confluence.atlassian.com/bbkb/how-to-disable-reset-2fa-on-bitbucket-cloud-and-atlassian-account-1236932929.html)

Thank you, [@Doris Pusch](/t5/user/viewprofilepage/user-id/5595351) !

Patrik S


Tags: bitbucket-cloud