youngmon/atlassian-qna huggingface dataset:
Need help filtering by a field that is present in two different issue types
Asked by mark zermeno:

Hello,

I have the field 'Priority Level' in the issue types 'Requirement' and 'Feature' in my JIRA project. What i would like to do is compare the values of 'Priority Level' in both issue types.

For instance, if the 'Priority Level' in the 'Requirement' is different from the 'Priority Level' in the 'Feature' i would like to see only those issues.


Answers:
author: John Funk
body: Hi Mark,

Do those fields have the exact same options for them? Are the options named exactly the same?


author: Tankem Williams
body: Hello Mark,  
Thank you for your request through the community. A comparison of this nature is not possible because JQL itself does not support direct comparison between fields of different issue types within a single query. However, there is a possible workaround,

1. Export 'Requirement' issues with their 'Priority Level' to a CSV file with the JQL  
   *issuetype = Requirement AND "Priority Level" is not EMPTY*
2. Export 'Requirement' issues with their 'Priority Level' to a CSV file with the JQL  
   *issuetype = Feature AND "Priority Level" is not EMPTY*
3. Now with both issues on the same Excel sheet, you can add a filter to pull out those Priority levels that are different from both issue types.

I hope this helps.


Tags: cloud

jira-service-management

jira-service-management-cloud
Automation rule, occasional unauthorized
Asked by Ben Hart:

So I have an automation rule in JSM that makes 3 web requests. Occasionally in this rule, which all three use the same credentials and call to the same base URL, reports back with a 401 Unauthorized.

I'm staring at three audit rule entries, all three performed the first call but hit 401 on the second. I do not have them setup to proceed on failure so that's where it stops. But three back to back entries where the first call was successful. And the second.. again using the same Authorization header, failed.

I am wondering if there are any like, rate limits or.. well anything in JSM automation rules that might cause this. (I do have a support case submitted with a similar question for the target URL provider)

Thanks!


Answers:
author: Mikael Sandberg
body: Since you are doing external calls via the web request then the error would be coming from that external source, not from within Jira. There are limits, but those limits only applies when you make calls to the Jira API, not external APIs.

comments: author: Ben Hart
body: Thanks! I mean I had this feeling but I needed to ask to cover the bases.

It's still weird though, I can fire off the same call in Postman as quickly as I can click trying to mimic the speed in the automation rule and never encounter a 401.


Tags: cloud

jira-service-management

jira-service-management-cloud
"View as Customer" in Portal
Asked by Kathleen Walsh:

Hello! I am tying to see how my customers see my Jira Service portal and can't seem to find the "View as Customer" button - can someone help me find it. My research says it is in the Portal Settings - but I can't seem to find anything. I am a master admin.

Thanks,

Kathleen


Answers:
author: Carla Ann Rowland
body: on the left side bar of your service desk --scroll down until you see channels then you can see a portal link![cloud portal screen 2024 05 28.png](https://community.atlassian.com/t5/image/serverpage/image-id/326483i779D6224AD11899E/image-size/large?v=v2&px=999 "cloud portal screen 2024 05 28.png")


author: Tim Jansmann
body: Howdy!

In my sample space I can get to the customer portal by using the "raise a request" button ![2024-05-28_13-42-07.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/326444i5B3FF08F0065325F/image-size/large?v=v2&px=999 "2024-05-28_13-42-07.jpg") (this is from data center but it's essentially the same) or you can place this at the end of your page url "servicedesk/customer/portals".  


Tags: cloud

jira-service-management

jira-service-management-cloud
The SLA is not working?
Asked by kalvarez:

The SLA is not working. I have already configured it, but the time to first response and time to resolution are not showing up in the queue. ![SLA.png](/t5/image/serverpage/image-id/326414i17305E2DA9BB938A/image-size/large?v=v2&px=999 "SLA.png")


Answers:
author: Gizem G?k?e _OBSS_
body: Hello [@kalvarez](/t5/user/viewprofilepage/user-id/5389139) ,

Jira's own SLA counters do not work backwards. Whenever an SLA is enabled, it starts calculating for issues that are within the SLA counter limits at that time. It does not calculate for issues whose SLA definition endpoint has been reached. If you want to see historical SLA breaches, you will need to extract data from the Issue History.

Lets say you set your SLA's when your issue is in *In Progress* status. This means that the Time to First Response counter will not be effective for this issue because the first response has already been given.

I am not sure, but this may be the cause of your problem.


author: Mikael Sandberg
body: What does your SLA looks like? Are you filtering based on issue types of request types? If you use the same query in a filter will it include the request that you are expecting the SLAs to pick up? What status is the request in?

comments: author: kalvarez
body: I copy the queue board with the tickets, one in progress and one to be done, as well as the SLA configuration....![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/326714i9C713C305C98ABC6/image-size/large?v=v2&px=999 "image.png")![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/326715i17A142206905C714/image-size/large?v=v2&px=999 "image.png")


author: Mikael Sandberg
body: The only thing missing from your screenshots of the SLAs are the start and stop conditions, but as [@Gizem G?k?e _OBSS_](/t5/user/viewprofilepage/user-id/5319899) mentioned above SLAs do not go back in time to start the SLAs for an issue.

Did you set up these SLAs after the requests included in your screen shots were created? Or was the SLAs already there before? If they were created before the requests, what priorities are on the requests? If so, what does the conditions look like for your SLAs?


Tags: cloud

jira-service-management

jira-service-management-cloud
Jira Automation AQL Referenced Object User Account
Asked by Christian:

Hi All

I have a question that I think should be simple to answer. I'm very new to AQL and am having trouble wrapping my head around how to do seemingly basic things. Here's what I want to achieve.

I have a Assets Schema that stores objects for every employee. A field for the employee object is a "Manager" field, that is filled by another employee object. I want to create an automation that when a user submits an issue, the automation will lookup the reporter's manager and leave a comment @'ing them asking for approval of the request. I feel this should be easy to achieve, but I can't wrap my head around how to do it.

Any help is greatly appreciated!

Christian


Answers:
author: Gikku
body: [@Christian](/t5/user/viewprofilepage/user-id/5412859) You can add an approval status into the workflow of such requests where an approval request can be automatically submitted to the manager of the reporter. The requirement that you described can be implemented by following any of the step mentioned in [How to auto-populate approvers from Asset objects attributes using automation in Assets](https://confluence.atlassian.com/jirakb/how-to-auto-populate-approvers-from-asset-objects-attributes-using-automation-in-assets-1072474097.html)

Once approver is set, email notification will be triggered to notify the manager.


Tags: cloud

jira-service-management

jira-service-management-cloud
Send reminder when review date has passed for an asset
Asked by Daniel ?ngefors:

I have a list of assets which has to be reviewed once or twice a year.  
The review date is an attribute on the asset and is set manually.

When the review date has passed I would like an email to go out, or a ticket created and assigned, to to the user that is assigned to the asset, so that the asset can be reviewed.

I'm very new to JSM and automation so I don't know where to start.


Answers:
author: Vijay Dadi
body: Hello [@Daniel ?ngefors](/t5/user/viewprofilepage/user-id/4717814) ,

You can have timely triggered automation, which checks {{issue.reviewdate}} \> now,

then edit issue/create issue - depends on your requirement

hope this helps !

comments: author: Daniel ?ngefors
body: Hi [@Vijay Dadi](/t5/user/viewprofilepage/user-id/5408989)

Thank you for your answer.

The Review date is an attribute on an asset.

I want a ticket created and assigned to the "Assigned to" attribute when the review date is within 30 days.

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


author: Vijay Dadi
body: yes, you can make use of the automation i have mentioned above.


Tags: assets

automation

cloud

jira-service-management

jira-service-management-cloud
Service Level Targets - Usage of lebels
Asked by Vijay Dadi:

Dear Community,

I have built the service level targets successfully. But as soon as I add lebels as a JQL for qualification, they are not working.

Question?

Are we allowed to use lebels in JQL while building service level targets?

TIA

Vijay


Answers:
author: Vijay Dadi
body: I am looking for a way to exclude opsgenie events. My opsgenie events have distinguishable label and i want to include that in JQL, but as soon as i add that in JQL, it stops working.


Tags: cloud

itsm

jira

jira-service-management

jira-service-management-cloud
Creating an Issue from an Asset Attribute
Asked by Heather Wild:

Good Afternoon,

I am relatively new to using Jira (Cloud) and I am looking to see if what I want to do is possible before I start researching it further.

Within my Objects, I have two attributes called 'Health Check Date' and 'Health Check Frequency'.

What I'd like to do is set up some automation:

If 'Health Check Date' is updated, then either Create an Issue/Schedule an Email for 'Health Check Date + Health Check Frequency'

For example, if someone changes the Health Check Date to 28/05/2024, then it would be great if it then created an Issue with a start/end date of 28/05/2025 (assuming 12 months is the frequency) or send the Team an email 12 months from now.

Many Thanks


Answers:
author: Mark Segall
body: Hi [@Heather Wild](/t5/user/viewprofilepage/user-id/5507518) and welcome to the community!

This is possible, but easier said than done. There have been a few suggestions to expand automation so that it can trigger on object attribute change. You can vote/watch the latest here:

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

The workaround is best explained here which essentially requires some prowess at leveraging the **Send Web Request**action for making REST API calls:

<https://confluence.atlassian.com/jirakb/find-the-previous-attribute-values-when-using-object-updated-trigger-in-an-automation-rule-1155164218.html>

comments: author: Heather Wild
body: Hi [@Mark Segall](/t5/user/viewprofilepage/user-id/4666637) ,

Thank you! and thanks for your response.

I will have a look through both of the links that you've shared and have a play around :)

Thanks,

Heather


Tags: cloud

jira-service-management

jira-service-management-cloud
transfer
Asked by Jorge L Doria S:

```
Good day,We have a free account, but for security and business continuity reasons, we want to acquire a new premium account. 
Can we then transfer the repositories from that free account to the premium account?
```


Answers:
author: Patrik S
body: Hello [@Jorge L Doria S](/t5/user/viewprofilepage/user-id/5327918)

and welcome to the Community!

You can definitely transfer repositories from one workspace to another using the [Transfer Repository Ownership](https://support.atlassian.com/bitbucket-cloud/docs/transfer-repository-ownership/) feature.

Let me share the steps to start the transfer :
> 1. From the repository you want to transfer, click **Repository settings** in the left menu.
>
> 2. On the **Repository details** page, click **Manage repository** located at the top-right corner of the screen.
>
> 3. Click **Transfer repository**.
>
> 4. Enter the **Workspace ID** of the workspacein which you want to transfer the repository.
>
> 5. Click **Transfer**.

An email will be sent to the **Administrators** of the destination workspace and the transfer will be in a **Pending** state. They will need to accept the transfer using the link on that email. The transfer will only be effective after an Admin accepts it.

More details on the transfer process are outlined in the following documentation :

* <https://support.atlassian.com/bitbucket-cloud/docs/transfer-repository-ownership/>

If you run into any issues while transferring the repos, or in case you have any questions, feel free to ask.

Thank you, [@Jorge L Doria S](/t5/user/viewprofilepage/user-id/5327918) !

Patrik S

comments: author: Jorge L Doria S
body: Hi!

Thanks for the answer, but, can i Transfer between 2 differents accounts?


author: Patrik S
body: Hello [@Jorge L Doria S](/t5/user/viewprofilepage/user-id/5327918) ,

Repositories pertain to a workspace, not to an account. In this case, yes! you should be able to transfer repositories between any different workspaces.


author: Jorge L Doria S
body: Hi Thanks for your answer, but, even if im not the admin on the other account, i'll be able to transfer between two different workspaces.


author: Patrik S
body: Hey [@Jorge L Doria S](/t5/user/viewprofilepage/user-id/5327918) ,

If you are just an Admin in the **source workspace** , but not in the **destination workspace**, you will be able to start the transfer from the source workspace, but one of the Admins of the destination workspace will need to accept the transfer for it to be completed.


Tags: bitbucket-cloud

cloud
Missing repository
Asked by Cameron Decker:

I haven't logged into my account for some time and I seem to be missing at least one private repository. When I log in with my email address, I don't have any repos associated with it. I think maybe at some point I linked the email address to a different account, but the repo is not over there either. Really hoping the repo isn't lost. It should be under \<redacted\>

Any help would be greatly appreciated.


Answers:
author: Patrik S
body: Hey [@Cameron Decker](/t5/user/viewprofilepage/user-id/5327830) ,

and welcome to the Community!

Just a heads up, I've removed the workspace/repository name from the description to protect your privacy.

Checking internally for the bitbucket account associated with the email you used to post this question, it indeed does not have access to the workspace/repository you shared. That bitbucket account was actually created quite recently, so you might have created it by mistake while trying to find the correct email.

I see the email that owns that workspace is similar to the one you used here in Community, but with a different domain. You might want to try to log in on Bitbucket using any other emails you own and check if that email has access to the workspace.

Thank you, [@Cameron Decker](/t5/user/viewprofilepage/user-id/5327830) !

Patrik S

comments: author: Cameron Decker
body: Thanks so much for your help, Patrik! I am at a complete loss as to what email that could be. I only have this email and a work email that have a similar name, and my work email didn't bring up anything either. Is it possible that the missing workspace changed emails recently? Wondering if my account got hacked and it got transferred to a different email.

Thank you again for your help!


author: Patrik S
body: Hello [@Cameron Decker](/t5/user/viewprofilepage/user-id/5327830) ,

The email contains a custom domain which seems to be a work email. It also belongs to an Atlassian Organization (you can check on <https://admin.atlassian.com>).

I'm wondering if you might have logged in with the correct account already but were looking at the wrong workspace.

Could you try logging in with those emails again, and for each of them :

1. Click on the **Personal Avatar** in the top right
2. Select **All workspaces** option. With this, you'll be able to see which workspaces that particular account has access
3. Click on one of the workspaces, and select the **Repositories** option in the top navigation bar.
4. Repeat for other workspaces this account has access.

Let me know if that works :)

Patrik S


author: Cameron Decker
body: Oh my gosh, there it is! I thought I may have moved things over to an organizational account I started, but I couldn't figure out how to see all workspaces. Thanks again for your help!


author: Patrik S
body: Awesome! Glad to hear you were able to find the repos :)

Feel free to reach out to Community if you ever need help!

Thanks, Cameron!

Patrik S


Tags: bitbucket-cloud

cloud
Can I constrain access to a repository to a Virtual Machine?
Asked by Michael Jay:

I don't really know where to start my research on this. I need to make it so my developers can only access our Bitbucket repositories through a VM I set up.

Where I'm mixed up is this: if a Bitbucket user has access to their email, how can I keep them from accessing private repositories on their local machine that they must access for work.

Thanks for any help. I generally try to be better-read before asking a question - but I'm really not even sure where to start.


Answers:
author: Patrik S
body: Hey [@Michael Jay](/t5/user/viewprofilepage/user-id/5327749)

and welcome to the Bitbucket Community!

If the Virtual Machine in question has a fixed IP address, you could leverage the IP allowlisting feature available on [Bitbucket Cloud Premium subscription](https://bitbucket.org/product/premium).

With the IP allowlisting enabled, you can restrict access to your workspace and its repositories only to the IPs added to the list. So if you included just the VM's IP to that list, the workspace would only be accessible from that VM.

You can find further details about that feature and how to enable it in the following documentation :

* [Allowlisting IP Addresses \| Bitbucket Cloud](https://support.atlassian.com/bitbucket-cloud/docs/control-access-to-your-private-content/#Allowlisting-IP-addresses)

Hope that helps! Should you have any questions, please let us know.

Patrik S


Tags: bitbucket-cloud

cloud
How to enable and use git push command in the Linux Shell Runner?
Asked by Illya Kuzmych:

I have been using a runner using Docker, and was able to execute my pipeline successfully each time. I have recently switched to Linux Shell as I do not want to reinstall dependencies each time I need to run the pipeline (no company artifactory available to store Docker images) and it is easier to just use the bash shell to do all the same commands.

I was able to set up the Linux Shell fine and it did all of my commands in my scripts successfully and as expected, however it is not able to do a git push, causing the pipeline to fail. I get this error in my pipeline that kills it:

fatal: could not read Username for '[https://bitbucket.org](https://bitbucket.org/)': No such device or address

What can I fix in my pipeline configuration or in my runner to allow for this to work successfully?


Answers:
author: Patrik S
body: Hey [@Illya Kuzmych](/t5/user/viewprofilepage/user-id/5312302) !

Thanks for reaching out to the Community :)

Based on the error message being returned :

```
fatal: could not read Username for 'https://bitbucket.org': No such device or address
```

Git does not have the credentials configured for the authentication to the repository, causing the push to fail.

When trying to push back to the repository from within the pipeline using self-hosted linux shell runners, you will need to first set the credentials that will be used by git to authenticate with Bitbucket Cloud. This can be done by executing the following command as part of your pipeline **before** the push:

```
git remote set-url origin https://$USERNAME:$APP_PASS@bitbucket.org/WORKSPACE/RESPOSITORY.git
```

In this example we are considering the [creation of environment variables](https://support.atlassian.com/bitbucket-cloud/docs/variables-and-secrets/#User-defined-variables) named *USERNAME* and *APP_PASS*, where :

* *USERNAME* : Your bitbucket account username. You can check it under [your bitbucket profile](https://bitbucket.org/account/settings/)
* *APP_PASS* : An app password used to authenticate to bitbucket. If you haven't already, you will need to [create an app password](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/) with at least **repository:write** permission for being able to push.

Following is an example pipeline using the command above :

```
pipelines:
  default:
      - step:
          name: Test
          runs-on:
           - 'self.hosted'
           - 'linux.shell'
          script:
            - git remote set-url origin https://$USERNAME:$APP_PASS@bitbucket.org/WORKSPACE/REPOSITORY.git 
            - touch fileA.txt
            - git add .
            - git commit -m "[skip ci] testing push from linux shell"
            - git push
```

The *\[skip ci\]* label can be used in the commit message so this commit does not trigger a new pipeline build, which could cause pipelines to get into a loop.

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

Thank you, [@Illya Kuzmych](/t5/user/viewprofilepage/user-id/5312302) !

Patrik S


Tags: bitbucket-cloud

cloud
Is there any API for accessing workspace runners?
Asked by Wandiatama Wijaya:

Greetings All,

I'm starting using self hosted runner with autoscaler in kubernetes, but the cleaner is not doing very good job and that makes several runner job that already "deleted" by the controller/cleaner is still there.

I'm trying to find a workaround to detect if the runner UUID from the runner jobs is still on the list of workspace runners, but I still unable to find the API for accessing workspace runner.

Is there any way to get workspace runner information via API?

Thank you.


Answers:
author: Ben
body: Hi Wandiatama,

Unfortunately at this stage - we only have API endpoints for Bitbucket Pipelines, not Runners. We have a [feature request](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) tracked with our developers, however, that you may **Watch** to receive future updates and **Vote**on to improve its visibility with regard to customer demand:

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

At this stage, you would only be able to view runner information via the UI.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud