youngmon/atlassian-qna huggingface dataset:
Automation - Create Microsoft Teams Meeting
Asked by Josh Heath:

The only option I see for MS Teams is 'Send Microsoft Teams Message'. Is there a way to use this (or some other) functionality to create a Teams meeting instead of a chat?

I am wanting a manual trigger action within an Incident to create the MS Teams meeting. Any help on ways to accomplish this would be appreciated. Thank you!


Answers:
author: Patrick Sch??ler _yasoon_
body: Hi [@Josh Heath](/t5/user/viewprofilepage/user-id/5200119)   

Thanks for your question.   

With Atlassian ChatOps you can start a Microsoft Teams chat or schedule a Teams meeting within an incident. You'll find more information here: [Connect Microsoft Teams with Jira Service Management \| Jira Service Management Cloud \| Atlassian Support](https://support.atlassian.com/jira-service-management-cloud/docs/connect-microsoft-teams-to-your-service-project/)  

Another option is to work with apps from the Atlassian Marketplace. My company yasoon is developing an app that integrates Microsoft 365 and Jira Service Management:  
[Microsoft 365 for Jira - Outlook Email, Teams, Calendar \| Atlassian Marketplace](https://marketplace.atlassian.com/apps/1213138/microsoft-365-for-jira-outlook-email-teams-calendar?hosting=cloud&tab=overview)  

Let me highlight some main features for you:

* Service agents [schedule meetings](https://support.yasoon.com/M365FJ/meetings-availabilities-meetings) from within Jira Service Management

* Service agents can [chat with customers](https://support.yasoon.com/M365FJ/microsoft-teams-start-a-chat-in-jira) from within the Jira ticket via Microsoft Teams

* Service agents can [triage requests](https://support.yasoon.com/M365FJ/microsoft-teams-start-a-conversation-in-jira) in Microsoft Teams channels from within the Jira ticket

* Customers can [raise support tickets](https://support.yasoon.com/M365FJ/create-support-tickets-from-microsoft-teams) in Microsoft Teams via a self-service portal

In addition, we provide an extended set of actions and triggers that can be used within the native Jira automation. With this you can for example schedule meetings automatically based on certain triggers: [Automation (yasoon.com)](https://support.yasoon.com/M365FJ/automation-features)

Check out all the features for JSM here: [IT service management (JSM) (yasoon.com)](https://support.yasoon.com/M365FJ/jira-service-management)  
The app is free for up to 10 users. If you want to talk about your use case further, [we're happy to give you a demo.](https://outlook.office365.com/owa/calendar/MeetMicrosoft365forJira@yasoon.com/bookings/)  

All the best,   
Patrick  

<br />

<br />

<br />


author: Bill Sheboy
body: Hi [@Josh Heath](/t5/user/viewprofilepage/user-id/5200119)

I have not tried to do that, and I wonder if you could call a REST API function to create the meeting using the rule's Send Web Request action. Perhaps try an internet search to find any supporting REST API to do so.

One additional challenge may be finding the data for the attendees to include in the request.

Kind regards,  
Bill


Tags: jira-service-management-cloud
Error rendering smart-values: Failed to get value for issue.description.match("Application::".*"")
Asked by Mateusz Bajorek:

I am trying to get 7 fields from issue description and add them to custom fields:

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

I have built a test rule to get HIS from Application::"HIS" and add it to Labels:

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

Unfortunately I am getting the below error:

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

I guess to get only "HIS", regex should be: Application::"(.\*)"

I would appreciate any suggestions on this case.


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

Your update with the group parenthesis is correct, and you may escape the quotation marks if you do not want those in the result:

{{issue.description.match("Application::\\"(.\*)\\"")}}

Also...do you expect any linefeeds / carriage returns on the description? If so, it does not handle those well; consider replacing / removing those before the match() call.

Kind regards,  
Bill

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

This is exactly what I was looking for. Thank You so much!   
Let me create custom fields to check if I can add all the info.


author: Bill Sheboy
body: Before you do that...

You can quickly test by using match function calls and only writing to the audit log. That will save time in getting the correct regular expressions before trying to set the field values.


author: Kalyan Sattaluri
body: Hello [@Mateusz Bajorek](/t5/user/viewprofilepage/user-id/5476468)

Obviously your regex has issues. Please update your top post and give an example text from where you need to extract these 7 labels so community can help.

Because what you have shared is not what you want so any solution given for this is not going to work when you start expanding your requirement. Thanks!

comments: author: Mateusz Bajorek
body: Hi [@Kalyan Sattaluri](/t5/user/viewprofilepage/user-id/5312306)

sure, here it is:

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

I think I will create text custom fields for each of this section.


author: Kalyan Sattaluri
body: Please share actual sample text so users can try it and update your original post of this thread so others can take a look as well.

Also, what is your end goal... you say you want to update labels field but you have sentences. You cannot have spaces in your labels right?


author: Mateusz Bajorek
body: I will have to get 7 labels in total from one issue description.
notification for ticket not updated in X time
Asked by Jeff Wieland:

Trying to use a global automation rule to trigger an email update for tickets that have been "Created" without an update in more then 48 hours. I have tried using multiple triggers on the created front, but then every ticket being created sends me an email, every time its been created. Tried to use "update" for trigger, but that one does not seem to offer any triggering since, the ticket is not being updated for 2d+?  

Any suggestions for global automation rules in JIRA?


Answers:
author: Mikael Sandberg
body: Hi [@Jeff Wieland](/t5/user/viewprofilepage/user-id/5476458),

Welcome to Atlassian Community!

Under the Automation Templates tab there is one that resolves the request due to inactivity that you can use as a starting point

![Screenshot 2024-04-15 at 11.11.31?AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/318420i625051F73B34E4C9/image-size/large?v=v2&px=999 "Screenshot 2024-04-15 at 11.11.31?AM.png")

The automation is triggered on a daily basis and uses a JQL query to get issues that have not been updated in the past 5 days or more.
Rule for moving parent story to in development status
Asked by kiran.gangadikar:

Hi All,

Can anyone help in figuring out why i get below error while running a automation rule.

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

Automation rule setup - Parent story to move for "In Development" Status when sub tasks are moved to "In Development"

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

Anything wrong in the way i have setup here??


Answers:
author: John Funk
body: Hi Kiran,

Check to see if there are any Conditions on the transition to Done. Also, check to see if it uses any transition screen with the transition to Done.
QAlity - Test Management for Jira. is it integrated with CI/CD pipelines?
Asked by Maria Anees:

QAlity - Test Management for Jira. is it integrated with CI/CD pipelines?


Answers:
author: Micha? Kowalewski_SolDevelo
body: Hi [@Maria Anees](/t5/user/viewprofilepage/user-id/5476148)

Welcome to the community!

Could you please elaborate on what would you need from QAlity Plus to support your CI/CD pipelines? The more we know about the context of your usage the more we can help and it is a very valuable feedback to us. If you wish, we will be happy to meet and discuss this with you as well. You can book a call with us from the link below: [![](https://assets.calendly.com/assets/favicon-bfb0492a754bdf44a0a58b969963f44235653cca09a1c0110309c1e03077e368.ico)QAlity Plus - feedback session - Customer Care](https://calendly.com/customer-care-xfk/qality-plus-feedback-session)

I look forward to hearing from you!

Best regards,  
Micha?  
SolDevelo Team


Tags: cloud

qality
Is there a way to get an email alert when a user reaches a total number of logged hours?
Asked by stuart lenox:

In a project a dev has x amount of hours they are allowed to work, so lets say 400hrs. I would like an alert that when the dev reaches 320hrs an email is sent to my email telling me the hours reached.  

<br />


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

Short answer: One may write a rule to do this going forward, but not looking at prior time tracking. If this type of reporting is needed frequently, consider using a marketplace app for time tracking reporting.

More information...

The built-in reporting for time tracking will not help with what you ask, as it does not include information about the specific users who logged time.

To find work logs for a range of time, the specific Jira issue keys must be known to call the REST API functions. JQL can find those issue keys for a user, but a rule cannot iterate over the issues to sum up the time across the logs (due to parallel processing of branches).

A workaround would be to add an entity property to users for the total time logged during your timeframe, and increment / decrement that whenever work was logged using one automation rule. Then a second, scheduled trigger rule could run to check for exceeding the threshold value of 400h.

That workaround is a bit complicated and brittle, and so using a marketplace app which can specifically report time tracking may help more.

Kind regards,  
Bill

comments: author: stuart lenox
body: Appreciate the reply.

Thanks for taking the time for such a response.


Tags: hours
Update a Capex Release Date on all issues Released in a Fix Version
Asked by Ron Swank:

I want to set a Custom Field date which represents a date of when an issue went out that was capex. i want to have the NOW date set to on this custom field as soon as the version is release. I am not sure why this would not work. i keep getting this error and i know have to be close and seems logical. Can't be this hard.

![Automation to set a capex date on version release.png](https://community.atlassian.com/t5/image/serverpage/image-id/317847i2A827FD60F031853/image-size/large?v=v2&px=999 "Automation to set a capex date on version release.png")![Automation to set a capex date on version release error.png](https://community.atlassian.com/t5/image/serverpage/image-id/317848i03C9E7CD5032D688/image-size/large?v=v2&px=999 "Automation to set a capex date on version release error.png")


Answers:
author: Kalyan Sattaluri
body: Hello [@Ron Swank](/t5/user/viewprofilepage/user-id/5144843)

As the error suggests, you have insert a branch, choose all issues fixed in the version, and then edit the issue with your value. Like below screenshot. Please try and let us know if issues. Hope it helps and accept solution of your issue is resolved. Thanks!

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

comments: author: Ron Swank
body: So this may again be a semantic thing...we use Github and create branches.... i may have seen branch here and auto trought about github but now know it makes no sense tied to that. can you give me a high level idea of why the branch is needed and what it represents in automation. thanks for your help on this Kalyan


author: Kalyan Sattaluri
body: Hello Ron,

Triggers like Version Released, Sprint started etc, are just events which we can use to initiate a rule but Jira has no "issues" at hand related to this main trigger.

When we are trying to "Edit Issue" in your use case, we need to supply Jira with criteria on which ones to edit, thats where Branch logic comes in.

Branch in automation lets you act upon related issues in reference to trigger (could be, like in your example, issues fixed in version, or, if an issue was in fact supplied in original trigger, act on its Parent or sub-tasks etc.)

Once you start thinking of use cases like, how to do I auto-update a story when all sub-tasks are done or how do I update Epic's fix version when a story's fix version is added, you will further understand how branching can solve those use cases. Hope it helps. Please consider accepting solution if your rule is working as expected.

<https://support.atlassian.com/cloud-automation/docs/jira-automation-branches/>


author: Ron Swank
body: You killed it...I started down branch but did not sound right. Thank you for confirmation.


author: Kalyan Sattaluri
body: If your rule's working as expected, consider accepting the answer. Thanks!


Tags: cloud

jira

jira-cloud
How to make sure a user does not enter a past date in a date field?
Asked by Shiv Sharma:

We have a date field (Implementation Date), which should always be a future date. How to make sure a user does not enter a past date in this date field? Ideally we'd want to display an error message if user enters a date earlier than {{now}}.

In Automation Rule, I can easily specify an IF condition:

{{issue.ImplementationDate}} is less than {{now}}

However, I do not see a suitable action in the list of possible actions.

Any help would be appreciated.

Thanks,

Shiv.


Answers:
author: Bharat Kalia
body: Hello [@Shiv Sharma](/t5/user/viewprofilepage/user-id/734151) - Have have you checked on the KB article - <https://confluence.atlassian.com/jirakb/how-to-prevent-users-from-selecting-previous-or-past-date-in-date-type-custom-field-1108678878.html>. If the custom field is being used in the Jira software, you can add the validator as per the above KB article.

I think that will make sure, the past date has not been selected. If you don't want to use the validator the best would to make a comment on the ticket with the conditional check on the date and then tagging the user who made that change with an error message.

Please let me know if this helps

Thanks,

-Bharat

comments: author: Shiv Sharma
body: Hi Bharat,

This helped. Thank you so much!

Shiv.
Automation of Change for every bi-weekly Tuesday planned maintenance
Asked by Jatin Masiwal:

Dear Team,  

I would like to know regarding the following scenario which I can create through automation option in Jira

A change ticket should be created for every bi-weekly tuesday planned maintenance between 22:00-23:00

For example: A change on 11.04.2024 should be created for the date of 23.04.2024 and a change on 25.04.2024 should be created for the date of 07.05.2024

Thanks in advance

Regards,  
Jatin


Answers:
author: John Funk
body: Hi Jatin - Welcome to the Atlassian Community!

Not sure if this helps or not, but take a look at this article to see if the solution meets your needs.

<https://community.atlassian.com/t5/Jira-articles/Creating-a-Flexible-Recurring-Task-Issue/ba-p/2040862>

comments: author: Jatin Masiwal
body: Thanks for the link. It helped me atleast for schduled part and will use the following cron job

![2024-04-12 11_54_25-Automation 2.png](https://community.atlassian.com/t5/image/serverpage/image-id/317926i82BFF2C545478403/image-size/large?v=v2&px=999 "2024-04-12 11_54_25-Automation 2.png")  

and would like to know if the same can be applied in **Changed Planned Start** and **End Field** whenever the change is created on Thursday, the **Change planned Start/end date** should be automatically updated with new dates.  

![2024-04-12 11_53_02-Automation.png](https://community.atlassian.com/t5/image/serverpage/image-id/317925i2F7B2801828E68E7/image-size/large?v=v2&px=999 "2024-04-12 11_53_02-Automation.png")


author: John Funk
body: You could try adding a Condition at the end for Advanced Condition for

{{now.dayOfWeek}}

equals

THUR

Then add action for Edit Issue and add your two fields.

I have not tried this before so test it out. Might could do an example for today being FRI and if that works, then the THUR should work.


author: Kalyan Sattaluri
body: Hello [@Jatin Masiwal](/t5/user/viewprofilepage/user-id/5474415)

Jira's cron [does not support](https://community.atlassian.com/t5/Jira-Software-questions/Re-Jira-automation-Cron-condition-every-2-weeks/qaq-p/1591489/comment-id/673131#M673131) biweekly syntax.

Please see below link for a work around, where you set the cron job for every tuesday still, but do advanced compare inside the rule to check if number of week is even.

<https://community.atlassian.com/t5/Jira-Software-questions/How-to-make-a-cron-expression-for-every-other-tuesday/qaq-p/1591228>

Hope it helps.


Tags: atlassian-marketplace

data-center
Automation to create a Bitbucket branch from a Jira Ticket
Asked by Nathaniel Epps:

Hello, I've search high and low on some documentation on creating a Bitbucket branch from a Resolution type in Jira (In Progress, Done, etc...).


Answers:
author: Hariharan Iyer
body: Hi [@Nathaniel Epps](/t5/user/viewprofilepage/user-id/5264653) ,

Unlike with Confluence, there is no direct integration of Jira automation with bitbucket to achieve this. However you can use this [REST API](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-refs/#api-repositories-workspace-repo-slug-refs-branches-post) in a webhook action to achieve the same.

Hope that helps!

\~ Hariharan
how to connect bitbucket with the jira so we seen the codes
Asked by sayyamhafeez:

hi there i finding difficulties connecting the bitbucket please help


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

We need more information in order to be able to help you.

The following page has several guides:

* <https://support.atlassian.com/bitbucket-cloud/docs/use-bitbucket-cloud-and-jira-together/>

The first guide on that page is about connecting Bitbucket Cloud to Jira Cloud and the second one is about connecting Bitbucket Cloud to Jira Data Center.

* Which one of the two are you using, Jira Cloud or Jira Data Center?  

* Have you followed the respective guide from the page I shared?  

* In which step are you stuck and what kind of errors or issues do you see?

Please keep in mind that you need to be an admin in both Jira and Bitbucket in order to integrate the two.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

jira-software
I can't log into my bitbucket account
Asked by Ce Bian:

![??2024-08-15 08.50.05.png](https://community.atlassian.com/t5/image/serverpage/image-id/341877i1D1FB13639A1A87F/image-size/large?v=v2&px=999 "??2024-08-15 08.50.05.png")


Answers:
author: Patrik S
body: Hey [@Ce Bian](/t5/user/viewprofilepage/user-id/5568713) ,

and welcome to the Community!

Checking internally I've identified your account was inactive due to a long period with no login.

I went ahead and set it to active, so you should be able to login as of now :)

Let us know in case you are still facing issues.

Thank you, [@Ce Bian](/t5/user/viewprofilepage/user-id/5568713) !

Patrik S


Tags: bitbucket-unknown-hosting-type

unknown-hosting-type
how to rename cloud main branch from master to main
Asked by eldon wong:

There are some instructions on how to rename the main branch.

These are steps I've taken on the command line:

git checkout master

git branch -m main

git push origin -u main

The branch is pushed to the Bitbucket (cloud) and I can see the branch

However, when I try to switch the main branch in

Repository Settings -\> ... Main Branch -**the dropdown list does not main as a branch that can be selected.**


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

Welcome to the community!

When you mentioned that you could see the branch, where did you see it?

That said, you should use the following method to create a new branch:

```
git checkout -b NEW_BRANCH_NAME
```

Could you try and let me know if that works?

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
How pass a secret environment variable value to pipeline
Asked by Ricardo Souza:

Hello. I need to pass bitbucket secure env variable value to pipeline.

How can I do that?

<br />

Thanks


Answers:
author: Ben
body: Hi Ricardo,

When you mention "environment variable" are you referring to a variable that is configured as part of the build script itself - or a repository/deployment/workspace variable that is configured via the Bitbucket Cloud UI?

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Pipelines move maven artifacts to windows server
Asked by Mark Rogers:

I'm trying to figure out how to have the output from a maven build (jar files) post to a remote server. something like the following perhaps? and also, how to have the downstream builds know where those are. Our existing system was written a long time ago as a manual jenkins process and I can't see how it's actually connecting those so I'm essentially working from scratch on an existing project. Any help you can give would be much appreciated.

script:

- mvn clean install

variables:

OUTPUT: \\\\100.20.3\\C$\\yada\\yada


Answers:
author: Ben
body: Hi Mark,

I noticed that you have not yet received a response from our community. I'm Ben from the Bitbucket Cloud support team and will be providing you with some suggestions to achieve this.

We have a number of pipes that are purpose built for deploying to remote servers depending on your preferred connection protocol - you can find these below with setup instructions:

* [FTP Deploy](https://bitbucket.org/atlassian/ftp-deploy/src/master/)
* [SFTP Deploy](https://bitbucket.org/atlassian/sftp-deploy/src/master/)
* [SCP Deploy](https://bitbucket.org/atlassian/scp-deploy/src/master/)
* [Rsync Deploy](https://bitbucket.org/atlassian/rsync-deploy/src/master/)

If your maven artifacts are created as a result of your script steps, you can add the deployment to the remote server as an [after-script](https://bitbucket.org/blog/after-scripts-now-available-for-bitbucket-pipelines), for example:  

```
      testbuild:        - step:            name: 'step1'            script:            - maven steps go here            after-script:            - pipe deploy script goes here
```

Please note - you will need to ensure that the remote server has our build IP addresses whitelisted, and any port open that is associated with your choice of protocol - you can find more information below:

* <https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/>

I hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud