youngmon/atlassian-qna huggingface dataset:
Slack notification - channel per-project?
Asked by Mark Haller:

When an urgent ticket is raised in any JIRA project, I want to send a Slack notification stating an urgent ticket was raised - no problem, done that already.

What I want though is to send that Slack notification to a channel specific to the JIRA project - for instance JIRA project "Client 22" got to channel "#my-client-22" and JIRA project "ABC Curtains" goes to channel "ABC Curtains"

Anyone got any idea how I can do this? Can I pass parameters to the channel name in the Automation? If so, how do I get it to be driven from the project?

At a huge push, I could do some big, if/then statement - but I don't even know how to do that.

Thank you!!

edit - sorry, forgot to say I'm using JIRA Server


Answers:
author: Artem Galiev
body: Hi [@Mark Haller](/t5/user/viewprofilepage/user-id/502503) ,

you should install Jira Cloud app to your Slack.

After that you have to add it to exact channel, enter "/jira manage" command and configure the needed events to be shown in this channel.

comments: author: Mark Haller
body: Sorry Artem - I've just edited the question to add that I'm using JIRA Server


author: Artem Galiev
body: Oh. Unfortunately I don't know how to configure it for the server version of JIRA, sorry.


author: Soumyadeep Mandal
body: Hi [@Mark Haller](/t5/user/viewprofilepage/user-id/502503) ,

Please read \& follow this documentation <https://slack.com/intl/en-in/help/articles/218475657-Jira-for-Slack>

comments: author: Mark Haller
body: Hey there

thanks for taking time to reply but I'm not seeing an answer to my question on that link?


Tags: cloud

jira-cloud
Is there a way to trigger versions created not matching a specific version name?
Asked by Larry Katz:

Basically I have a trigger for Version Created.  
When that version is created, it does a thing (created a "Release Candidate" ticket in that version automatically)  

This works great.  

The issue is, I need to add a new fixversion and use it all all 50 projects we have when we are NOT releasing anything (called "norelease") which i'll use in another automation.  

I see on the new version created trigger you can add regex to++match++ a fixversion name. I'm trying to do the reverse.  

Also,  
Our fixversion names are not following a specific standard 100% of the time so I can't do a match, but I can do a exact match on what I do NOT want this to fire. which is the "norelease" name.  

![Screen Shot 2020-12-18 at 11.42.39 AM.png](/t5/image/serverpage/image-id/122840iA1000EF0E5D8526C/image-size/large?v=v2&px=999 "Screen Shot 2020-12-18 at 11.42.39 AM.png")

"On version creation if the name = exactly "norelease" then do nothing, if it does proceed with the automation."  

I tried to branch this using JQL but got an error:  
"Branch rule / related issues

Error searching for related issues. This is most likely because the following issues don't have a related issue of the type you specified. Try narrowing your search to only include issues that contain links to related issues:"


Answers:
author: Ravi Sagar _Sparxsys_
body: Hi [@Larry Katz](/t5/user/viewprofilepage/user-id/3460959)

In the version created trigger try this regular expression.

```
^(?!.*norelease).*$
```

Ravi

comments: author: Larry Katz
body: That regex did the trick, thanks much!


author: Bill Sheboy
body: Hi [@Larry Katz](/t5/user/viewprofilepage/user-id/3460959)

Although you can do this with RegEx (lookahead I think), and so not trigger the rule to start with, you can also do this with a simple compare if you don't care about rule execution counts. For example:

* Trigger: version created
* Advanced condition: {{version.name}} does not equal norelease
* Action: create your ticket

Best regards,

Bill

comments: author: Larry Katz
body: Thanks Bill,  
This still triggered, I tried the second value as is, and explicitly as a string (norelease, and also "norelease")  

![Screen Shot 2020-12-18 at 2.48.54 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/122885iAE48E5B7397B2FA6/image-size/large?v=v2&px=999 "Screen Shot 2020-12-18 at 2.48.54 PM.png")  

<br />


author: Bill Sheboy
body: Okay, that is weird... My rule looks the same as yours, with no quotes around the test value of *norelease*, and it worked for me.

Please try logging the {{version.name}} before the compare to confirm what is going into the test, perhaps wrapping it to check for whitespace:

```
Log of current version name: ||{{version.name}}||
```

Is your test rule global or project-level scope, and if project-level, is your rule in the same scope?


Tags: cloud
Only auto-assign issues during office hours
Asked by Mark Haller:

I've set up a trigger when new Critical priority tickets are created in any project, that a #critical slack channel receives a notification, and the ticket is auto-assigned to a person in the "tech lead" role - great.

However, I only want the auto-assigning to work during office hours.

How would I do this, please? I'm using JIRA Server.


Answers:
author: Dirk Ronsmans
body: hi [@Mark Haller](/t5/user/viewprofilepage/user-id/502503) ,

It's a tricky one cause JIRA doesn't have the notion of business hours (outside of SLA).

A workaround I've used in the past is to adapt your Automation rule (I assume you are using the codebarrel automation?) and to add an IF statement.

In the IF statement you can set it so that it only triggers if the issue falls within a business hours JQL.

Something like created \>= startOfDay(8h) AND created \<= startOfDay(17h)

(if you work between 8am and 5pm)

For me that has been a workaround :)

comments: author: Mark Haller
body: You rock. This works perfectly, thank you!
Why can't I add triggers in the Jira workflow
Asked by Peter Strassmann:

We have Jira 8.13 installed and I cannot create a trigger to automatize the transition between states of Jira tickets. So my question is: Is there some settings I missed to add triggers in the Jira workflow?

I added a screenshot below where we see that there is no links to edit triggers, conditions or others in contrast to the documentation (<https://confluence.atlassian.com/adminjiraserver0813/configuring-workflow-triggers-1027138215.html>):  
![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/122570i95FC52075DF38A37/image-dimensions/291x304?v=v2 "image.png")

Any feedback is highly appreciated!


Answers:
author: Bill Sheboy
body: Hi [@Peter Strassmann](/t5/user/viewprofilepage/user-id/4198029) -- Welcome to the Atlassian Community!

Did you note the troubleshooting steps at the bottom of that linked article? Please take a look at those to see if any of the cases apply to your instance.

Best regards,

Bill
Assigning ticket - Slack notification doesn't show assignee info
Asked by Mark Haller:

I've got an automation that will auto-assign a Critical ticket to the lead dev role - which works great.

The automation also sends a Slack notification to a #critical channel.

Except when I use {{assignee.displayName}} it's empty every time.

I've tried taking out the Slack notification and putting in another automation based on the same criteria - makes no difference.

I've also tried taking the Slack notification to act on Comments - and that works.

It's almost like the timing of the automation doesn't have the data update available until later or something - I don't know ...

Any ideas?


Answers:
author: Jose Luis Lopez
body: Hi Mark,

Have you tried to use the action "Re-fetch issue data" after updating the assignee?

comments: author: Mark Haller
body: Hi [@Jose Luis Lopez](/t5/user/viewprofilepage/user-id/2029921) thank you for the quick reply!

I've looked around but cannot see that option - sounds perfect. Where is it, please?


author: Mark Haller
body: And I've just answered my own question AND IT WORKS. Woop woop! Thank you :-)

<https://community.atlassian.com/t5/Jira-Software-questions/In-automation-cannot-find-quot-Re-fetch-issue-data-quot/qaq-p/1386579>


author: Jose Luis Lopez
body: Nice :)
Workflow between Jira Service Desk queues
Asked by Amer Hameed:

Hello,

We have several Jira Service Desk queues and we want to see if we can do something where a ticket is created in the HR queue and then kickoffs to other queues (operations, IT, back office, etc.) for tasks to be completed by each department and ending back into HR when it's ready to complete.

<br />

Thanks,

<br />

Amer


Answers:
author: Mikael Sandberg
body: The short answer is yes, you can do this using Automation. I use it to create tasks that needs to be completed when a new employee is onboarding/offboarding for example.

comments: author: Amer Hameed
body: Do you know of a tutorial to do this? We don't really use automation yet.


author: Mikael Sandberg
body: I would start by checking out the [Jira automation template library](https://www.atlassian.com/software/jira/automation-template-library#/label/all/1453), it has a lot of examples and links to blog posts that gives you more in depth information. Creating the rule you are looking to implement is fairly simple, just be aware that depending on what plan you are, there are limits to the number of multi-project automations you can do each month. Have a look at <https://www.atlassian.com/software/jira/service-management/pricing> for more information.
Custom Field Value Is Always Blank
Asked by Michael:

I have created a rule that will update a custom field based on the description. This successfully works, but when I try to include the value of the custom field it is always blank. I have two rules, one to update the custom field and another rule that will trigger an email. I thought because they are two different rules that it was the problem, but I created a test rule to update the customer field and then log the value of the custom field. It always returns empty.

Here is how I tried logging the value:

* {{issue.fields.customfield_13141}}
* {{issue.fields.customfield_13141.value}}
* {{customfield_13141.value}}

My rule:

* When: Issue created  
  * For Current issue
    * Description contains
      * Severity: Critical
    * Then: Edit issue fields
      * **Severity**
    * And: Add value to the audit log.
      * **{{issue.fields.customfield_13141}} {{issue.fields.customfield_13141.value}} {{customfield_13141.value}}**


Answers:
author: Bill Sheboy
body: Hi [@Michael](/t5/user/viewprofilepage/user-id/613788)

Is the custom field you are trying to log the same field that you just modified within the rule?

If so, I believe it is logging the original value (at the point of trigger), not what you changed. Please try adding a Re-fetch action after the edit and before the logging. That reloads the issue into the rule context before proceeding.

Best regards,

Bill

comments: author: Mahmud Abdu
body: Thanks this helped me too
Move repositories to another project within my space
Asked by Camila Maraschin Trindade:

Gostaria de saber se ? poss?vel mover reposit?rios de um projeto para outro dentro do meu espa?o sem perder informa??es ou fluxo de trabalho?


Answers:
author: Syahrul
body: G'day, [@Camila Maraschin Trindade](/t5/user/viewprofilepage/user-id/5409786)

Welcome to the community!

It's possible to move a repository over to another project. You can do so by following these steps:

1. Navigate to repository settings
2. Under **Repository Details,** locate **Project**
3. Click the dropdown menu and select the project you wish to move this repository
4. Click **Save**to transfer the repository project.

Let me know how it goes.

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
Pipe "rsync-deploy" does not work with `--rsync-path`
Asked by Marvin Heilemann:

I am unable to use spaces in \`--rsync-path\`. Tried these variants:

- EXTRA_ARGS as Array: \`- "--rsync-path=sudo -u www-data rsync"\`

- \`"--rsync-path=sudo -u www-data rsync"\`

- \`--rsync-path=sudo -u www-data rsync\`

- \`--rsync-path="sudo -u www-data rsync"\`

- \`--rsync-path='sudo -u www-data rsync'\`


Answers:
author: Igor Stoyanov
body: Also you could check this answer if example in my first message will not help:  
<https://community.atlassian.com/t5/Bitbucket-questions/EXTRA-ARGS-filter-bug/qaq-p/2107584>


author: Igor Stoyanov
body: Hi [@Marvin Heilemann](/t5/user/viewprofilepage/user-id/4469299) . Here is example with an EXTRA_ARGS as an array when you have multiple args or whitespace characters to cover cases with escaping.  

```
script:  - pipe: atlassian/rsync-deploy:0.12.0    variables:      USER: 'ec2-user'      SERVER: '127.0.0.1'      REMOTE_PATH: '/var/www/build/'      LOCAL_PATH: 'build'      DEBUG: 'true'      EXTRA_ARGS:        - "--filter=P assets/css" # double quotes here are necessary        - "--exclude=*.txt"
```

Are you sure you follow this example?  
Provide us with the error details if you will still have this issue. Also you could see the generated rsync command in the logs.  

Regards, Igor

comments: author: elanclarkson
body: This solution worked for me.

E.g.  

```
EXTRA_ARGS:
  - "-og"
  - "--chown=apache:apache"
  - "--chmod=D775,F664"
  - "--rsync-path=sudo rsync"
```

Thanks [@Igor Stoyanov](/t5/user/viewprofilepage/user-id/4550492)!


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
API Docs Request (base URL and endpoints) for Atlassian Bitbucket v8.9.9
Asked by Chris Partridge:

I'm still working with Atlassian Bitbucket v8.9.9, though an upgrade will soon need to be completed. That said, I can't find API docs anywhere. They're easy to find for Crowd 2.1, but we're not running that yet.  

Can someone please confirm what the base URL and endpoints would be for the API assuming the UI itself were at the following URL?   

["https://larry.threestooges.net/projects/DSO/repos/slapstick/browse?at=refs%2Fheads%2Flarry-dev-branch"](https://larry.threestooges.net/projects/DSO/repos/slapstick/browse?at=refs%2Fheads%2Flarry-dev-branch)  

Thank you in advance for your help!


Answers:
author: Christian Glockner
body: Hi Chris,

You can find the REST API documentation at <https://developer.atlassian.com/server/bitbucket/rest/v817/intro/#about>  

Cheers,  
Christian  

Premier Support  
Atlassian


Tags: bitbucket-server

server
Something went wrong
Asked by ???_FORBIZ_PHP:

Wait a few moments, then try again. If this keeps happening, check the current operational status of Bitbucket Cloud at [bitbucket.status.atlassian.com](https://bitbucket.status.atlassian.com/)

`4fd4d72d043f4ee3a7a5b364b2882e57`

If the problem persists, contact Support and include the code displayed above, if one is provided.


Answers:
author: Theodora Boudale
body: Hi [@???_FORBIZ_PHP](/t5/user/viewprofilepage/user-id/5414201) and welcome to the community!

I see that you also created a support ticket for this issue. One of my colleagues let you know that our engineering team has fixed the issue that was causing this error.

If you are still experiencing issues, you can leave a comment in the support ticket so we can further investigate.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Plan upgrade is requested during migration
Asked by Talgat Taskhozhayev:

I'm migrating from Bitbucket Server to Bitbucket Cloud.  
Currently, we have our Cloud setup in Free plan.  
The migration has 3 active and 4 inactive users. (See below)  
However the migration check is asking me to upgrade to higher plan. (See below)  
Are inactive users also counted in the towards plan eligibility ?  
Or is there a bug in the migration process that can be worked around ?

![Bitbucket-Users.PNG](/t5/image/serverpage/image-id/302371i9EB5F3B8E2823792/image-size/large?v=v2&px=999 "Bitbucket-Users.PNG")

![Bitbucket-Result.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/302373i49FBFF040C6B1EF1/image-size/large?v=v2&px=999 "Bitbucket-Result.PNG")


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

Inactive Bitbucket Server users will be migrated but as "tombstone" which won't even appear in the workspace at all. They will have Cloud accounts created for the purpose of PR creation and attribution but will not count against your Bitbucket Cloud license because they won't be added to the workspace.

Nevertheless, the Bitbucket Cloud Migration Assistant checks if the Bitbucket Cloud target workspace is on a paid billing plan, and if it is not, it will prevent the migration. We included this check because the majority of the customers who migrate have more than 5 users and migrating on a Free plan would give errors.

If you never upgraded your Bitbucket Cloud workspace before, you can upgrade to the Standard or Premium plan to proceed with the migration, and then downgrade right after the migration so you won't get charged.

After you upgrade, please check this page

<https://bitbucket.org/workspace-id/workspace/settings/plans-and-billing>

where **workspace-id** replace with the ID of your Bitbcuket Cloud workspace. You will see there when the **Billing period** ends. If you downgrade to the Free plan before the end of the billing period, you won't get charged.

In the unlikely event that you get charged, and if you indeed downgraded to the Free plan before the end of the billing period, please let me know as soon as possible and I can create a support ticket for you so that we issue a refund.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Trying to invite a new person to workspace - not getting email invitation
Asked by Jennifer Taylor:

Hello,

We own two workspaces, A and B: we have a user who belongs to Workspace A, and we need him to be a part of both.  

So I sent 5 email invites to this person from Workspace B, but he never received the email. We checked with our email message trace and we do not see it come in.


Answers:
author: Patrik S
body: Hello [@Jennifer Taylor](/t5/user/viewprofilepage/user-id/4664806) , thank you for reaching out to Community.

Checking internally for the email logs I see the invitation email was apparently correctly delivered to the user's account. What may have happened is the email was routed to a different folder or wrongly classified as spam.

In this case, we kindly ask the user to check the Spam folder and any other filter they may have in place on their email that can have routed it to a different folder.

Thank you, [@Jennifer Taylor](/t5/user/viewprofilepage/user-id/4664806) !

Patrik S


Tags: bitbucket-cloud

cloud
The team member does not receive an invitation and the invite list is empty in Bitbucket
Asked by Valentyn.Khomits:

Hello,

I was trying to add a team member to a group in Bitbucket.  
I clicked on "User Groups" and the "Add Members" button -\> Added a team member's email address and selected the group  
I got popup 'Invitation sent. 1 user was invited to the group', but the invitation list is empty and the team member did not receive the invitation email  
I discovered in the community that his email address may be in a suppression list  
How can I verify this information?  
Can anyone help me solve this problem?


Answers:
author: Patrik S
body: Hello [@Valentyn.Khomits](/t5/user/viewprofilepage/user-id/5413807) and welcome to Community!

I see you have also opened a support ticket with us as your workspace has an active subscription. I've just sent an update on the support ticket with my findings.

After further checking internally, the user is not receiving the notification due to their account being inactivated by an org admin.

One of the org admins can [Reactivate the account](https://support.atlassian.com/user-management/docs/deactivate-a-managed-account/#Reactivate-accounts), and you can then try to send the invitation again, which should be then successfully delivered.

Thank you, [@Valentyn.Khomits](/t5/user/viewprofilepage/user-id/5413807) !

Patrik S

comments: author: Valentyn.Khomits
body: Hello Patrik,

Thank you for your support  
Your advice helped to resolve this issue

Have a nice day


Tags: bitbucket-cloud

cloud
Getting error when trying to execute selenium automation test cases
Asked by Sourav Pratap:

java.lang.ExceptionInInitializerError  
3
at BDD.HART_listeners.TestListener.onTestStart(TestListener.java:26)  
4
Caused by: java.lang.NullPointerException  
5
at BDD.HART_utility.HARTLogger.initialize(HARTLogger.java:37)  
6
at BDD.HART_utility.HARTLogger.getLogger(HARTLogger.java:65)  
7
at BDD.HART_utility.ConfigReader.<clinit>(ConfigReader.java:12)  
8
... 26 more  
9
... Removed 25 stack frames  
10  
11  
TestRunner*runner*  
\<1s  
1
Could not initialize class BDD.HART_utility.ConfigReader  
2  
3  
4
java.lang.NoClassDefFoundError: Could not initialize class BDD.HART_utility.ConfigReader  
5
at BDD.HART_listeners.TestListener.onTestFailure(TestListener.java:59)  
6
... Removed 25 stack frames  
7


Answers:
author: Patrik S
body: Hello [@Sourav Pratap](/t5/user/viewprofilepage/user-id/5412342) and welcome to the Community.

Are you running the automated test cases in Bitbucket Pipelines?

If yes, then I would suggest trying to [debug your code locally with docker](https://confluence.atlassian.com/bbkb/debug-pipelines-locally-with-docker-1167698072.html), as the error suggests the issue is with your current java code itself, rather than with the Pipelines environment.

After debugging it locally, once you've got it working well, you can update your *bitbucket-pipelines.yml* to match the changes.

Thank you, [@Sourav Pratap](/t5/user/viewprofilepage/user-id/5412342) !

Patrik S


Tags: bitbucket-cloud

cloud