youngmon/atlassian-qna huggingface dataset:
Automation to Transition Issues Not Updated by Reporter in Last 4 Working Days
Asked by Edgardo Ibarra:

Hi Atlassian Community,

I need help creating an automation rule in Jira that transitions issues which have not been updated ++by the reporter++ in the last 4 business days. Here's the scenario:

* We have several issues reported by different users.
* I want to create an automation that checks if the reporter has not updated their reported issue in the last 4 business days.
* If the issue hasn't been updated by the reporter in that time frame, the issue should transition to a specific status (e.g., "Resolved").

I am aware of basic JQL but need guidance on setting up this specific condition, especially considering "business days" and "updates by the reporter."

Has anyone done something similar or can suggest the best way to achieve this? Any insights, especially examples of automation rules or JQL queries, would be greatly appreciated.

Thanks in advance for your help!


Answers:
author: Frederic Wolf
body: Hi,

just to give you 2 quick ideas:

You can solve it in 2 ways.

1. Scheduled Job with JQL
2. SLA plus Scheduled Job (Only JSM)

my preferred option is the 2.

1. Scheduled Job with JQL

Just hit google with ?jql updated business day" First 5 to 10 results should help. Play around with them.   
best answer from my point of view

<https://community.atlassian.com/t5/Jira-questions/Re-JQL-for-issue-in-status-for-last-3-or-more-business-days/qaq-p/2328224/comment-id/574217#M574217>  

2. SLA plus Scheduled Job (Only JSM)

Create an SLA with a corresponding calander, which represents your business days and hour

SLA should break when not updated for x Days.

i am not in office now, so i cant tell you the exact config.   

then simply create an automation which fires when SLA breaches.

hope this helps

if not do not hesitate to ask again. Mention me.

kind regards

frederic


author: Trudy Claspill
body: Hello [@Edgardo Ibarra](/t5/user/viewprofilepage/user-id/5267716)

Does it matter what sort of update the reporter made?

Comment?

Status change?

Update the Description, Summary, or any other field?

How do you define "business days"?

Does "business hours" play a role in this?

comments: author: Edgardo Ibarra
body: Hello [@Trudy Claspill](/t5/user/viewprofilepage/user-id/3569011) , I hope you are well.

Ideally the update I seek to measure is a comment. By business days I mean work days from Monday to Friday, since I do not want to include weekends in this 4-day period.

To give you more context, what I'm looking to do is create an automation that transitions issues to the status "closed" if the customer hasn't made a comment in the last 4 "business days".

Thank u in advance for your help.


author: Frederic Wolf
body: hey [@Edgardo Ibarra](/t5/user/viewprofilepage/user-id/5267716) ,

if you found a solution help other members with a detailed implementation description, including screenshots etc.

thank you


Tags: automation

cloud

jira-service-management

jira-service-management-cloud
set up automation rule that comments in the reply to customer section
Asked by Deb Keene:

I have an automation rule that when a specific field is updated that a comment is created stating " field has been updated, etc,etc". In the automation rule how do I indicate that I want that comment added to the "reply to customer" section in jsm and not in the "add internal note" section?


Answers:
author: Trudy Claspill
body: Hello [@Deb Keene](/t5/user/viewprofilepage/user-id/1197305)

In the Comment Action set the Comment Visbility.

![Screenshot 2024-06-07 at 12.05.50?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/328692i524761284AE09D77/image-size/large?v=v2&px=999 "Screenshot 2024-06-07 at 12.05.50?PM.png")


Tags: cloud

jira-service-management

jira-service-management-cloud
Link two assets via serial number object type
Asked by Davide Cioranu:

Hi all,  
I am trying to setup Jira Asset to start using this and import our assets.  
Currently, we have Asset Discovery running daily, which gets for us valuable data.

I had in mind to link discovered "hosts" to "hardware assets" via the serial number field.  
This would meant the field would require to be converted into an object to have references/attributes linked between them.  
As it currently stands, I have created an Object Type called "Serial number", which would have all the discovered Serial numbers from the network discovery.

If I manually populate this, and manually link this to a new hardware asset, this works as expected.

My issue is currently with the Asset Discovery import. I am not able to get the "serial number" attribute in "hosts" to map to this object type field and I believe this is because of AQL ![Screenshot 2024-06-08 010641.png](/t5/image/serverpage/image-id/328729i9CC218A4398EE39C/image-size/large?v=v2&px=999 "Screenshot 2024-06-08 010641.png") I have tried to follow guides within and outside the community and I am not able to find any solution.  

Thanks


Answers:
author: Justin Rainey
body: I have the same issue. Thanks for sharing this post.

Any Suggestions. [Labcorp](https://www.my-labcorp.com)


author: Frederic Wolf
body: Just had a quick look at your screenshot. Put Serial Number in Quotes.

So it looks like this ?Serial Number"

tell me if it works.

comments: author: Davide Cioranu
body: Not sure if you are referring at the "Serial number" on the left.   
My screenshot was not the clearest.  
Here's a better view (btw, that didn't work)  
![jira2.png](https://community.atlassian.com/t5/image/serverpage/image-id/328732i83C617317DD9AF17/image-size/large?v=v2&px=999 "jira2.png")


author: Frederic Wolf
body: I am not sure how your acid object structure is working. Can you post a screenshot of the Attribute structure?

If you try to Filter Your object by the serial number In the Overview how How does the AQL look like.   

and the most cases the label is the name Attribute, or are you using the serial for the name and label or is there a dedicated field for this?


Tags: cloud

jira-service-management

jira-service-management-cloud
Can't receive email invitation
Asked by Bitbucket Plusoft:

Hi, Good Afternoon!

I created the organization "*REDACTED* " and I invited the "*REDACTED* as organization administrator and others accounts, but none are receiving this e-mail.

Can are you help us, please?


Answers:
author: Bitbucket Plusoft
body: Hi Mark, Good Morning!

Yes, I Sent a new invitation at the moment.

I attached the evidence about the process, in the bottom left corner, you can see the notification of "An email was sent to the user to complete account activation."

But I did not receive this e-mail.

The others example: "Feeling stuck?", "You made a great decision! Welcome to your Atlassian Community." or "3 reasons to integrate Bitbucket \& Jira Software" I received without problem, but the invite doesn't.

I did a new test to an account of gmail, but I got the same result.

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


author: Mark C
body: Hi [@Bitbucket Plusoft](/t5/user/viewprofilepage/user-id/5354738)  

Welcome to the community.  

I checked the team workspace but there was no invitation sent to the email address you mentioned.  

Could you invite the email again?  

Regards,  
Mark C


author: Bitbucket Plusoft
body: I did the invitation yesterday (31/Out/23) and today (01/Nov/23).


Tags: bitbucket-cloud

cloud
How to remove non-company users from jira tickets
Asked by Abike Looi-Somoye:

Hi community - asking if anyone has found an automation solution that removes non-company users from jira tickets.

Problem Statement:

We have tickets auto created via an email (approx. 2,000 tickets per month) - third parties email our alias and it creates a ticket. If there are multiple email addresses in CC, they are added to the request participants including internal company email addresses, and the sender (third party) is in the reporter field and sometimes in the request participants field.

Once the ticket is created, we want all third parties to be removed from the tickets (reporter and request participants fields) so that they do not receive internal communications or comments. Third parties can have different email domains so it needs to be a rule that is something on the lines of 'If email address does not contain @companyname.com remove from Reporter and Request Participants'.

What we have tried so far - agents populate relevant internal approvers to a custom field, automation overwrites the Request Participants and Reporter field with this approver.

Downside - some people who previously had access needed their access reinstated, resulting in manual work.

Has anyone managed to create an automation to remove non-company email addresses/users from Reporter and Request Participants fields?


Answers:
author: Tim Kopperud
body: Hi [@Abike Looi-Somoye](/t5/user/viewprofilepage/user-id/5515773), welcome to Atlassian Community. If I understand your question correct you might try something like this.

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

The **Then: Create variable** step will need a smartv value as shown here:

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

This is the smart value code.

```
{{#request participants}}{{#if(emailAddress.endsWith("companyname.com"))}}{{key}}{{/}}{{/}}
```

Simply copy/paste this code. You will only need to replace the text "mycompanyname.com" to your requirement.

The last step should be like this:

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

You might uncheck "Send notification" in this step,

TimK

comments: author: Tim Kopperud
body: Hi [@Abike Looi-Somoye](/t5/user/viewprofilepage/user-id/5515773), did you try implementing this, and where you able to solve this?

TimK


author: Tim Kopperud
body: Hi [@Abike Looi-Somoye](/t5/user/viewprofilepage/user-id/5515773), if my answer was valuable for you, please mark it as accepted for helping other users reading this.

Thanks.

TimK


author: Abike Looi-Somoye
body: thank you!


Tags: automation

cloud

comment

comments

communication

email

emails

jira-service-management

jira-service-management-cloud

reporter
How to see Pipeline destination while running
Asked by Nathan Hubbard:

Hi sorry if I'm lacking details here.  
But when I run a pipeline on bitbucket . org , (say to a test environment or to a production environment) is there a way to double-check that I am deploying to the place I want after I have clicked "Run"?  

I see a pipeline number, last commit, branch that is being deployed, and a nice pipeline progress flow-chart. But nowhere does it seem to say destination.  
Is there a way to see this, to sanity check myself while I'm watching the build?


Answers:
author: Patrik S
body: Hello [@Nathan Hubbard](/t5/user/viewprofilepage/user-id/5354728) and welcome to the Community!

You could change the step name to match the environment you are deploying to, so you can see the step name when you open the pipeline in the UI and can then ensure the correct environment was selected.

Following is an example YML file :

```
pipelines:
  default:
    - step:
        name: Staging-1
        deployment: Staging-1
        script:
          - echo "Private image was pulled"
    - step:
        name: Staging-2
        deployment: Staging-2
        script:
          - echo "Private image was pulled"
```

Which will look like this in the UI :

![Screenshot 2023-11-02 at 12.38.22?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/289799i174F35B1A59FA9EE/image-dimensions/268x304?v=v2 "Screenshot 2023-11-02 at 12.38.22?PM.png")

The deployment environment can be configured under **Repository Settings \> Deployments**.

The following article might also be of help when configuring deployment in your pipelines :

* <https://support.atlassian.com/bitbucket-cloud/docs/set-up-and-monitor-deployments/>

Thank you, [@Nathan Hubbard](/t5/user/viewprofilepage/user-id/5354728) !

Patrik S

comments: author: Nathan Hubbard
body: Thank you. I'll try to remember this for the future!


Tags: atl-pipelines

unknown-hosting-type
Self Hosted Runner and fallback to Atlassian Runner in case of unavailability
Asked by Vivek Chauhan:

Hi,  

Is it possible to use a self-hosted runner for Bitbucket Pipelines and in case the self hosted runner is down or unavailable, the jobs can fallback to the standard Atlassian Bitbucket runners for execution.


Answers:
author: Patrik S
body: Hello [@Vivek Chauhan](/t5/user/viewprofilepage/user-id/5083102) !

Thank you for reaching out to Community!

Currently, if Bitbucket pipelines are not able to communicate with the self-hosted runner, the pipeline step will fail and there isn't currently a failover mechanism to run that same pipeline in Bitbucket's cloud runners. For that, you would need to manually update the YML file to remove the runs-on option in the step.

We do have a feature request to implement the functionality of failover, which you can access with the following link :

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

I strongly recommend adding your **Vote** to that feature so our product managers can better understand the interest. You can also add yourself as a **Watcher** to be notified whenever there's any update on that feature.

Thank you, [@Vivek Chauhan](/t5/user/viewprofilepage/user-id/5083102) !

Patrik S

comments: author: Vivek Chauhan
body: Thanks for your response [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) , I have voted for the same and hope it gets picked up in future for implementation.


Tags: bitbucket-cloud

cloud
Cannot remove prior Admin
Asked by Daniele Marino:

Essentially, we currently have a free subscription for a small team. However, the previous administrator, who initially set up the Bitbucket Cloud workspace, has since left their position and joined another company. They reached out to me, requesting that I remove them from the workspace, but I encountered JSON errors in the process. Furthermore, they were unable to leave on their own. Is there a way to transfer administrative privileges to one of the members for the former admin?


Answers:
author: Patrik S
body: Hello [@Daniele Marino](/t5/user/viewprofilepage/user-id/5354520) and welcome to the Community!

Checking internally for the workspace you have shared when posting this question, I see it is a Personal workspace that is attached to a user account. Back in the day, when a new account was created, Bitbucket would also create a personal workspace linked to the account. Personal workspaces are a legacy feature now and any new workspaces are shared workspaces (see [Difference between Personal and Shared workspaces](https://confluence.atlassian.com/bbkb/difference-between-shared-and-personal-workspaces-1141477191.html)).

This is the reason why you are not able to remove the original administrator user because the workspace is linked to their account.

While there's no option to convert a personal workspace into a shared workspace, I see you are also an Admin in that workspace, so you can create a new workspace and [transfer the repositories](https://support.atlassian.com/bitbucket-cloud/docs/transfer-repository-ownership/) from the original workspace to the new one. The new workspace will not be attached to a user account and will be owned by any member who is added to the Administrators group.

Hope that helps to clarify your questions!

Thank you, [@Daniele Marino](/t5/user/viewprofilepage/user-id/5354520) !

Patrik S


Tags: bitbucket-cloud

cloud
Do bitbucket api for POST request-changes still up-to-date?
Asked by Antique Antz:

> from this reference api: [The Bitbucket Cloud REST API (atlassian.com)](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pullrequests/#api-repositories-workspace-repo-slug-pullrequests-pull-request-id-request-changes-post)(the pictures below)![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/289519i14E8A825D2E423B7/image-size/large?v=v2&px=999 "image.png")  
> I try to use this api url in my bitbucket-pipelines.yml and when I ran the pipeline I got the response like this  
> {"type": "error", "error": {"message": "Resource not found", "detail": "There is no API hosted at this URL.\\n\\nFor information about our API's, please refer to the documentation at: <https://developer.atlassian.com/bitbucket/api/2/reference/>"}}


Answers:
author: Antique Antz
body: **FYI** : I have already solved this problem. It is because the url that I have wrote it is under single quote so solution is change it to double quote.  

If the admin have seen this you can delete it. Thx.
How to restrict non team member from branch pull and push
Asked by U P Dave:

I have a Bitbucket free account, I have created a private project and a private repository within that project itself. I have created a group of users with some domains say "example.com". Now when I try to clone this repo on my local machine with the personal email ID - "gmail.com" \[which is not part of my team\] even though the project and the repo are private I am still able to pull the repo, create new branch, push the changes.

How can I restrict this behavior I want only people with access provided and have an "example.com" domain to be able to access my repo.


Answers:
author: Syahrul
body: G'day, [@U P Dave](/t5/user/viewprofilepage/user-id/5354402)

Welcome to the community!

I want to understand how you attempted to clone using your "Gmail" account. Could you share some additional details? Typically, when cloning via HTTPS or SSH, authentication is done using your username, not your email address.

Therefore, if your username is linked to an account with access to the repository, you can clone without issues. I want to gain a clearer understanding of the process you followed. This will help me identify whether there might be any misconceptions about how permissions function in Bitbucket and assist you better.

Regards,  
Syahrul

comments: author: U P Dave
body: Hi [@Syahrul](/t5/user/viewprofilepage/user-id/744536) ,

Greetings of the Day,

Thanks a lot for reverting to my question. Yes, I have my personal GitHub account set up with my personal Gmail address. I was working with my personal repo by creating "git config --global user.email - 'my personal gmail address'" and using manager-core as a credential helper. Cloned my personal repo using HTTPS on my local machine and accessed it with PAT created on my personal account.  

Now like I said using bitbucket free plan created private Project and private repo within that project. Then I tried to create clone of the repo using HTTPS it did not ask for any credentials I could clone repo, was able to push create branch and push the branch, even though I had not given this Gmail address acccess in the bitbucket.  

I hope this clears the scenario.


author: Syahrul
body: Hi [@U P Dave](/t5/user/viewprofilepage/user-id/5354402)

Interesting, I am leaning this toward your local machine, which has already had the credentials stored. You can use the following commands to generate verbose clone output to verify where the clone credentials were used:  

```
GIT_TRACE_PACKET=1 GIT_TRACE=1 GIT_CURL_VERBOSE=1 <git command_here>
```

Look for authentication used from the verbose output. In such cases, for OSX, it's stored in the keychain and for Windows, it's using Credentials manager.

Regards,  
Syahrul


Tags: access

bitbucket-administration

bitbucket-cloud

cloud

permission

security

user-management
Recover Lost Repositories
Asked by duddie:

Hello,

All my repositories are lost. I have no idea what has happened to them. Is there any way to get them recovered?

[https://bitbucket.org/anapphk/](https://bitbucket.org/anapphk/workspace/members/)

Thanks in advance


Answers:
author: Syahrul
body: Hey [@duddie](/t5/user/viewprofilepage/user-id/242958)

I can see all the repositories are still within the workspaces. Could you try to login to bitbucket and open the URL, then click the repositories on the top horizontal tab to see the list of your repository?

Let me know how it goes.

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
Why cannot see my old repository?
Asked by robert_kao:

I see the mail notification Changes to the Bitbucket Cloud billing model. I am a free account user. Then I log in to my account. I cannot see any repositories. How can I see them?


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

Welcome to the community.

Have you tried to navigate from the top right corner of your avatar \> All workspace to view the list of your workspace? Then, check if the missing repository is still within those workspaces.

We've made some changes to the UI, so I suspect the repository is still around, but it's not showing in the dashboard list.

Let me know how it goes.

Regards,  
Syahrul

comments: author: robert_kao
body: Syahrul :

I found them already. Thanks a lots.

Regards

Robert Kao


Tags: bitbucket-cloud

cloud
Dockerfile in pipeline has missing package (uuid-dev and uuid-dev:arm64)
Asked by Michael Aguayo:

My question is why does the bitbucket pipeline seem to ignore the installed package from my dockerfile in the pipeline?

I'm able to build and compile locally within the dockerfile.

Dockerfile

```
FROM ubuntu:20.04

RUN apt update --fix-missing
RUN apt install -y cmake gcc g++ uuid-dev
```

and bitbucket-pipelines.yml is

```
pipelines:
  - parallel:
    - step:
      image:
        name: get-this-from-google-artifact-registry
      script:
        - cd Build
        - cmake ..
        - make -j
```

The dockerfile that the pipeline uses fails when cmake looks for package dependencies on uuid-dev with  


    Using the multi-header code from /opt/atlassian/pipelines/agent/build/path/to/header/library: UUID_LIBRARY-NOTFOUND

    include: UUID_INCLUDE_DIR-NOTFOUND

    CMake Error at path/to/cmake/Modules/FindUUID.cmake:55 (message):

      Could not find UUID library

    Call Stack (most recent call first):

      path/to/cmake/CMakeLists.txt:115 (find_package)

    Configuring incomplete, errors occurred!

Although the dockerfile clearly installs the dependency since I'm able to build locally.  

I found this post [Docker image in Pipeline doesn't install Packages](https://community.atlassian.com/t5/Bitbucket-questions/Docker-image-in-Pipelines-doesn-t-install-Packages/qaq-p/771799)   
that seems similar to my problem which the OP also links his related post on stackOverflow [Here](https://stackoverflow.com/questions/49561724/bitbucket-pipelines-from-docker-image-has-missing-npm-modules)

So I'm checking the .gitignore to be safe since that seems to be his fix.

It would be great to know what is happening here and how to remedy it.

Thanks


Answers:
author: Michael Aguayo
body: The problem ended up being that the docker image stored in the google artifact registry was not correctly being updated, therefore the pipeline was not using the correct image to run.

Solution ended up being to update the remote image correctly.


Tags: bitbucket-cloud

cloud
Unable to access BitBucket through any WiFi connection
Asked by Paul Woods:

Get this: I cannot access BitBucket through any wireless connection with our without a VPN. I can connect to it on-site via Cat-6, but not wireless. Edge and Firefox act as if the site doesn't exist, or says takes too long to access. Any suggestions would be awesome.


Answers:
author: Charlie Misonne
body: Hi Paul!

Welcome to the Atlassian Community.

You tagged this as bitbucket-server meaning your Bitbcket instance is being managed by the company you work for.

Are you always on the company's WiFi when you try to access Bitbucket?

Is Bitbucket supposed to be accessible from the internet (home office, any other wifi, ...)?

If it works via cable I assume there is some network (mis)configuration that causes your issue.


Tags: bitbucket-server

server