youngmon/atlassian-qna huggingface dataset:
How can I get a list of the users that have been invited to our JSM service desk?
Asked by Phil Dorcas:

We need a list of users who have been invited to our JSM service desk. Under customers we have a list of customer organizations, and within each one there are 0, 1, or more users, Some have been invited but not yet set up their JSM portal account. Can we see all the users who have been invited in one list?


Answers:
author: Pallavi Shirodkar
body: Hi [@Phil Dorcas](/t5/user/viewprofilepage/user-id/3868704) ,

In the customers section itself we can see the list, where we can also see if the users have been invited or not.

![Screenshot 2024-02-27 155208.png](https://community.atlassian.com/t5/image/serverpage/image-id/308869i2A57A5E34EC70501/image-size/large?v=v2&px=999 "Screenshot 2024-02-27 155208.png")

comments: author: Phil Dorcas
body: I would like to see this in one list, instead of having to click on every customer organization. When I click on customers in the left nav bar, I do not see a list of users with their emails as in the list you showed above. What I see is a list of organizations. These are the companies that use our product. If I click on one of the organzations, I can then see the list of who we invited, which looks similar to what you showed above. I would like to see them all in one list instead of having to click on 20 or more companies to see each list separately. How can I do that?  

When we add an organization (top left button "Add organization") it adds to that list that we see when we select customers. Then, to add a user, we select that customer organization they belong to to open up that list of users for that customer. Then from there we add to that list to send the invitation email.


author: Phil Dorcas
body: I would like to see a list that had:  
Customer organization email address Status Actions

CompanyA fred.will@dn.xxx Active   
CompanyA tomsnyder@xz.xxx Invited Resend invite

CompanyB mary.sm351@ab.xxx Invited Resend invite

It is more difficult to manage the invitations among our "agents" (Customer Support Team) if Atlassian cannot give us a simple list like this.


Tags: cloud

jira-service-management

jira-service-management-cloud
In jira, is there any plugin to integrate jira with Monday.com, Teams and Blip?
Asked by Luis Felipe Viana:

I need to integrate Jira with these tools, but I don't know if there is any integration with them.  
can you help me?


Answers:
author: Nikola Perisic
body: Welcome to the community [@Luis Felipe Viana](/t5/user/viewprofilepage/user-id/5438757) !

For monday there are several, this is one of them: [https://marketplace.atlassian.com/apps/1224142/monday-com-for-confluence-sync-boards-items-to-confluence?hosting=cloud\&tab=overview](https://marketplace.atlassian.com/apps/1224142/monday-com-for-confluence-sync-boards-items-to-confluence?hosting=cloud&tab=overview)

It has the highest rating.

For Microsoft Teams:

[https://marketplace.atlassian.com/apps/1227628/microsoft-teams-integration-for-jira?hosting=cloud\&tab=overview](https://marketplace.atlassian.com/apps/1227628/microsoft-teams-integration-for-jira?hosting=cloud&tab=overview)

For Blip there are no integrations.

comments: author: Luis Felipe Viana
body: [@Nikola Perisic](/t5/user/viewprofilepage/user-id/5166624) thank you very much!


author: Nikola Perisic
body: You are welcome!


author: Joseph Chung Yin
body: [@Luis Felipe Viana](/t5/user/viewprofilepage/user-id/5438757) -

To supplement what [@Nikola Perisic](/t5/user/viewprofilepage/user-id/5166624) stated, you can always visit Atlassian Marketplace to find out available third party add-ons for your application - <https://marketplace.atlassian.com/> that for your needs.

In regards to MS Team integration, take a look this Atlassian posting - <https://support.atlassian.com/jira-service-management-cloud/docs/connect-microsoft-teams-to-your-service-project/>

Hope this also helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.


Tags: cloud

jira-service-management

jira-service-management-cloud
Proxy server on JSM cloud
Asked by Peter Makki:

My customers are a little bit concerned about URL that they hit because it is Atlassian URL (\*.atlassian.net). I have my own domain certificate but I know it's not possible yet to use it in the platform. So I've tried to establish a proxy nginx which will be serving my certificate and forward to my JSM but I can't get it work - it keeps saying that "Page unavailable". I was wondering if anybody has tried that and if was successful?


Answers:
author: Dan Breyen
body: Hi Peter, as I understand it, based on [this article](https://community.atlassian.com/t5/Jira-Service-Management-articles/Custom-Domains-in-Jira-Service-Management-Help-Center/ba-p/2433175), you should be able to use your own custom domain now.

Hopefully this makes it easier for you.


Tags: cloud

jira-service-management

jira-service-management-cloud
Asset field AQL currentReporter in Goups attribute
Asked by Rik de Valk:

Hi Community!

I need your help on a Asset Custom Field AQL for filtering the issue scope.

In the Object Schema "CMDB", we have an ObjectType "Service Offering" that has an attribute 'Subscribers'.

The Subscribers attribute is of the attribute type Group and can contain **multiple** Groups.

We have a Custom Field of the type Assets called 'Affected service offering'. This currently only filters on:

```
objectType = "Service Offering".?
```

**Requirement**: Now, we want to ensure that users can only report issues on the portal for Service Offerings to which they are Subscribers based on their group membership.

For example: the Service Offering 'Microsoft Teams' has the 'jira-servicedesk-customers' group as Subscribers so that all staff can report incidents for that. But the Service Offering 'Azure Virtual Machine' only has some groups as Subscribers that work in DevOps teams or other technical user groups.

I can see that we should be able to filter (Issue scope) on

```
Subscribers having user("currentReporter()")
```

But that only seems to work for single Group values (cardinality). I guess we would have to be able to compare currentReporter().groups with Subscriber groups to see if there is an overlap.

Any idea how to make this work when the attribute cardinality is set to multiple?

Thanks! Rik


Answers:
author: Rik de Valk
body: It really is Monday... As it turns out, using the

```
Subscribers having user("currentReporter()")
```

works just fine.

I simply doesn't work if you have a typo in your AQL ?

So... Anyone wanting to implement a similar scenario: the above solution works.... Also if you have multiple Groups as the attribute type.

So this way you can restrict Asset fields on object level. Yeah, row-based-security!

I hope your Monday was better than mine....


Tags: cloud

jira-service-management

jira-service-management-cloud
Efficient to find duplicate accounts in jira.
Asked by Vera Valshonok:

Hi Community!

I am looking for a convenient way to see how many and which once duplicates of the accounts do we have in Jira.

I have exported an excel of all the active users for now, going one by one is time costly.


Answers:
author: Jehan Bhathena
body: Hi [@Vera Valshonok](/t5/user/viewprofilepage/user-id/5174542) ,

I can attest to what [@Nic Brough -Adaptavist-](/t5/user/viewprofilepage/user-id/781454) and [@Marc - Devoteam](/t5/user/viewprofilepage/user-id/3796976) mentioned, you wont be allowed to create 2 users with the same email.

But you can end up with 1 "Jira Service Management's Portal Only" customer and one "User" profile, if you need to find an overlap in these then you'll have to take an export of both the Customers and the Users. In Excel to find duplicates you can use the below options :

<https://www.wallstreetprep.com/knowledge/how-to-highlight-duplicate-values/>

<https://support.microsoft.com/en-us/office/find-and-remove-duplicates-00e35bea-b46a-4d5d-b28e-66a552dc138d>

Once you've identified the duplicate values follow this to migrate the Customers <https://support.atlassian.com/user-management/docs/migrate-a-portal-only-customer-to-atlassian-account/>

Hope this helps.


author: Nic Brough -Adaptavist-
body: What do you mean by "duplicate"? You can't create two accounts with the same email, so I am a bit stuck on the "duplicate" thing.


author: Marc - Devoteam
body: Hi [@Vera Valshonok](/t5/user/viewprofilepage/user-id/5174542)

You must mean by name as it's not possible to use a duplicate email address on Cloud in a single instance or in an organization over multiple instances


Tags: cloud

jira-service-management

jira-service-management-cloud
Get korrekt smart value
Asked by dahu:

Hello,

I got an SLA with json-name: "\\"Erledigt\\" nach 14 Tagen \\"Geschlossen\\""

With a log-action with smart value: {{issue.fields."\\"Erledigt\\" nach 14 Tagen \\"Geschlossen\\""}} I get this result:  

SlaFieldBean{completedCycle=\[\]ongoingCycle=SlaCycleBean{startTime=SlaDateTimeBean{iso8601=Mon Feb 26 12:21:05 UTC 2024, jira=Mon Feb 26 12:21:05 UTC 2024, friendly='Heute 13:21', epochMillis=1708950065734}, breachTime=SlaDateTimeBean{iso8601=Thu Feb 29 05:21:05 UTC 2024, jira=Thu Feb 29 05:21:05 UTC 2024, friendly='29/Feb/24 06:21', epochMillis=1709184065734}, breachTime=null, breached=false, paused=false, withinCalendarHours=true, goalDuration=SlaTime{millis=234000000, friendly='65h'}, elapsedTime=SlaTime{millis=2163363, friendly='36m'}, remainingTime=SlaTime{millis=231836637, friendly='64h 23m'}}}

... so it works.

But I need the value of

{{issue.fields."\\"Erledigt\\" nach 14 Tagen \\"Geschlossen\\""**.elapsedTime.millis**}} to compare the value with another value, but in a log-action I do not get a result for the smart value

What is the correct smart value for that?

See screenshot with .json - names...

Best Regards,

Daniel

![2024-02-26 14 04 53.png](/t5/image/serverpage/image-id/308650i22E1B92AE27CD23D/image-size/large?v=v2&px=999 "2024-02-26 14 04 53.png")


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

Can you please log below smart value and check

{{issue.customfield_10206.ongoingCycle.elapsedTime.millis}}

comments: author: dahu
body: Hello Kalyan,

aarrgghhh :) ... I should have been able to see the missing "ongoingCycle" ... next time I will know.

It works fine, thank you very much!!

Best Regards,

Daniel


Tags: cloud

jira-service-management

jira-service-management-cloud
Unable to login
Asked by Alisson Domingues:

Today I was testing my pipeline when I was kicked out

We couldn't log you in {#toc-hId--497473523}
--------------------------------------------

You may run into this issue when you use specific browsers or add-ons that hide the referer header for id.atlassian.com and other Atlassian sites. Check for these and then try logging in again.

already cleared the cache, rebooted the machine, tried in another device

could someone help ?


Answers:
author: Patrik S
body: Hello [@Alisson Domingues](/t5/user/viewprofilepage/user-id/5115723) ,

Thank you for reaching out to us.

We will reach out to you via a support ticket shortly. I am going to create the support ticket using the email address of your community account, and you will receive an email with a link to the support ticket.

Thank you for your patience.

Best regards,

Patrik S


Tags: bitbucket-cloud

cloud
How to use bitbucket repository access token to edit a file with bitbucket server rest api .
Asked by Kaushal Krishna:

I need to know if we could use the repository access token to perform edit/push a file with bitbucket server rest api.  

Because it is showing the "When performing an edit, the author must have an e-mail address" error .  

If someone can show me how to add the email address (without adding personal access token) to the payload then I would be grateful .

Using personal access token will be sort of risky to use .

auth=repository access token

The code :  

```
import json
from variables import *
import requests
import logging

# logger=logging.getLogger()
# logging.basicConfig(filename = 'myfile1.log', level=logging.DEBUG,
#                     format='%(filename)s:%(lineno)s %(levelname)s:%(message)s')


url = f"https://{base_url}/rest/api/latest/projects/~{username}/repos/{repo}/browse/{file}"

contents=None
with open(file,"r") as f:
    contents=f.read()

payload={
    "content": contents,
    "message": "Holla",
    "branch": "master",
    "sourceCommitId": "016cf822394",
}
data={
        "author":{
            "name":"example",
            "emailAddress":"ex@example.com"
        }
    }

headers = {
    "Accept": "application/json",
    "Authorization": f"Bearer {auth}"
}

response = requests.request(
   "PUT",
    url=url,
    headers=headers,
    files=payload,

)


print(response)
print(response.content)
```


Answers:
author: Kaushal Krishna
body: Can somebody help me ?

comments: author: Mario Arturo Naranjo Garcia
body: Currently i have the same issue, could you solve that?


Tags: bitbucket-server
How can I manage permissions in "children" branches?
Asked by gcover:

We have a branch structure for releases that is locked down permissions wise - \`release/\*\` has very few write access, and only PR merge permissions.

I now want to create a structure where folks can create branches with the following name \`release/\*/child/\*\`. Having configured the permissions, and I understand there's overlap here with the first schema, we're seeing an error about not being able to create a branch while the "parent" exists.

Is this an odd wording of a permission related error (the overlap)? If I"m not able to achieve this, what are my other options given these ideals:

* Folks can create branches "from" the release branch
* Some folks can commit/push directly to that branch
* Other folks can only merge via PR
* When browsing branches it's easy/obvious what release a child branch comes from

That last point is the idea behind putting the branch names after the release...but if that's not going to work, I'm a bit short of ideas atm.

Thanks


Answers:
author: Theodora Boudale
body: Hi [@gcover](/t5/user/viewprofilepage/user-id/5115343) and welcome to the community.

If there is a branch restriction for **release/\*** and only certain users have write access, then only these users will be able to create a branch starting with **release/**. This was by design, and we have a feature request to change this here:

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

I would suggest adding your vote (by selecting the **Vote for this issue** link) and a comment to it to express your interest.

If branch permissions overlap, the results are determined by the table on the following documentation page:

* <https://support.atlassian.com/bitbucket-cloud/docs/use-branch-permissions/#Branch-permissions-overlap>

++Please keep in mind the following though:++

If you already have a branch named release/123, it will not be possible to create a branch named e.g. release/123/child/456. This is a limitation of Git (and not Bitbucket) and it doesn't have anything to do with branch permissions.

Branches with the pattern A/B exist as a file named B in a folder named A. If you already have another branch named A, it will not be possible for Git to create a folder named A in order to save the branch A/B.

If you have locally a branch named release/123, then trying to create a branch release/123/child/456 is going to show the following error:

```
$ git checkout -b release/123/child/456
fatal: cannot lock ref 'refs/heads/release/123/child/456': 'refs/heads/release/123' exists; cannot create 'refs/heads/release/123/child/456'
```

You could work around this issue by creating a branch named release/123-child/456, so using the pattern release/\*-child/\* instead of release/\*/child/\*

Kind regards,  
Theodora

comments: author: gcover
body: Thank you for the information, both on the Bitbucket side, and reminding me about the structure of git branches. I can work with this structure now to create something that works for us.


Tags: bitbucket-cloud

branch

cloud

permission
Unable to login to Bitbucket
Asked by Patrick Curley:

I have already tried all the methods and all browsers(edge,chrome,firefox). JIRA is working properly. I am only having issues with Bitbucket.


Answers:
author: Theodora Boudale
body: Hi [@Patrick Curley](/t5/user/viewprofilepage/user-id/5115291) and welcome to the community.

Your Bitbucket Cloud account was marked as 'Dormant' due to inactivity.

I went ahead and reactivated it, could you please try logging in now and let me know if it works?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Unable to add Access Key
Asked by Liam Till:

Hi,

Is anyone else experiencing issues adding Access Keys to a repo? I've been trying and the "Add SSH Key" button spins with its loading icon then stops and the pop up window remains open. The key does not get added. I've tried this on multiple repos.

Have previously added keys with no issue.

Thanks

Liam


Answers:
author: Liam Till
body: I'm still having trouble with this. Have tried multiple browser, clearing cache etc. Still unable to add key. Does anyone have any suggestion on what might be the issue?

Many thanks,

Liam


Tags: bitbucket-cloud

cloud

key
how to merge a pull request to a restricted branch with rest API 2.0?
Asked by Iuliia Gapon:

Hi Team,

please advise how to merge a pull request to a restricted branch with rest API 2.0?

Is it possible to add access to the restricted branch of the token?

Thank you


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

I'm afraid that tokens cannot be added to branch restrictions.

If you want to merge via API into a restricted branch, you will need to use the username and an [app password](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/) of a Bitbucket Cloud account that has permission to merge into that branch, with a call like the following:

```
curl --request POST \
--url 'https://api.bitbucket.org/2.0/repositories/workspace-id/repo-slug/pullrequests/23/merge' \
--user 'Bitbucket_Username:App_Password' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"message": "merge PR",
"close_source_branch": false,
"merge_strategy": "merge_commit"
}'
```

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
I am trying to publish code to azure container registry
Asked by biyani.11:

Hello All,

I am trying to publish my code to Azure Container Registry from bitbucket. Kindly help as I am not able to identlfy the correct pipe to be used in yml file.


Answers:
author: Igor Stoyanov
body: [@biyani.11](/t5/user/viewprofilepage/user-id/5115071) hi.

Try this one: [azure-web-apps-containers-deploy](https://bitbucket.org/atlassian/azure-web-apps-containers-deploy/src/master/)

```
script:  - pipe: atlassian/azure-web-apps-containers-deploy:1.2.0    variables:      AZURE_APP_ID: $AZURE_APP_ID      AZURE_PASSWORD: $AZURE_PASSWORD      AZURE_TENANT_ID: $AZURE_TENANT_ID      AZURE_RESOURCE_GROUP: $AZURE_RESOURCE_GROUP      AZURE_APP_NAME: $AZURE_APP_NAME      DOCKER_CUSTOM_IMAGE_NAME: $DOCKER_CUSTOM_IMAGE_NAME
```

Regards, Igor


Tags: azure

bitbucket-cloud

bitbucket-pipelines

cloud
Can I alter the account I committed with, after the fact?
Asked by Gavin Baumanis:

I have multiple Atlassian accounts.  
And via not knowing exactly what I was doing at the time have committed code for one company using the account of a different company.  

Can I somehow, change the account attributed to historical commits?


Answers:
author: Theodora Boudale
body: Hi Gavin,

It is possible to change the author of commits, please keep in mind though that the process to do so involves rewriting history. This means that the commit hash of the commits you want to change, as well as any descendants of these commits, is going to change. It would be good to communicate this with your team if you decide to proceed, and also that all users take a new clone of the repo, to avoid pushing back your old commits.

You can check the following knowledge base article, which has detailed steps on how to achieve that:

* <https://confluence.atlassian.com/bitbucketserverkb/how-do-you-make-changes-on-a-specific-commit-779171729.html>

Please note that pushing back the altered commits to the repo with the **--force** flag (detailed in the last step of the doc) is a risky operation that will **++completely overwrite all commits++**. I would strongly recommend:

* taking a backup of the repo (a clone with the **--mirror** flag) before you proceed
* test the process first in a fork of the repo instead of the repo where you want to make this change. This way you can check if the fork is in good shape after you make these changes, and before you push to the repo you want to change.

If the branch where you want to push these changes has a branch restriction "Rewriting branch history is not allowed", it will not be possible to force push unless the branch permission is set to "Allow rewriting branch history".

<br />

In order to prevent this issue from happening in the future, you can set a different author email for each of your local repos:

**1)** From the command line, navigate to the directory of a repo

**2)** Use the following command to set the author email for this repo:

```
git config user.email "my_email@example.com"
```

**3)** Verify the configuration with the command

```
cat .git/config
```

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
What is the API used to get file contents?
Asked by Mohammed Muthahhar:

Hi,

Are there any APIs for getting the content of a file without giving the sha of the commit which is mentioned here..

<https://developer.atlassian.com/cloud/bitbucket/rest/api-group-source/#api-repositories-workspace-repo-slug-src-commit-path-get>

I tried [https://api.bitbucket.org/2.0/repositories/myorg/myrepo/src/master/filename](https://api.bitbucket.org/2.0/repositories/myorg/myrepo/src/master/README.md) url to read the file and it works fine.

But if it's a feature branch or bugfix etc, and if we try [https://api.bitbucket.org/2.0/repositories/myorg/myrepo/src/feature/my-branch/filename](https://api.bitbucket.org/2.0/repositories/myorg/myrepo/src/master/README.md)

it gives error as  
{  
"type": "error",  
"error": {  
"message": "Commit not found",  
"data": {  
"shas": \[  
"bugfix"  
\]  
}  
},  
"data": {  
"shas": \[  
"bugfix"  
\]  
}  
}  
what is the solution for this??


Answers:
author: Theodora Boudale
body: Hi [@Mohammed Muthahhar](/t5/user/viewprofilepage/user-id/5070356),

This endpoint works with branch names that don't include the slash character ( / ) but it will not work for branches that have a slash in their name.

We have a bug report in our issue tracker here:

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

The bug report mentions the commit endpoint, but this applies to the src endpoint as well.

For these branches that include a slash in their name, you will need to provide a commit hash instead. You can use the following endpoint to get the commit hash of a branch's last commit:

* <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-refs/#api-repositories-workspace-repo-slug-refs-branches-name-get>

You can filter the output to return only the commit hash with a url as follows:

```
https://api.bitbucket.org/2.0/repositories/workspace-id/repo-slug/refs/branches/feature/mu-feature-branch?fields=target.hash
```

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud